Date/Time and Checkbox


Posted on 16th Feb 2014 07:03 pm by admin

Hi Everyone,

I am trying to figure out how to insert the current date and time into the database.
Scenario:
1) user enter my site and fills up the forum
2) hits the submit button
3) Regardless of the user location I want the time to be stored in the database in PST.

Question:

Do I need to get an input from the user for time? or can I just use some server time etc?

Right now I'm asking them to manually insert the date and time in the textbox which is not that effective


Also I have a checkbox in my forums but I always get 0 in the value field when I check the database. I have it setup as (tinyint(1)) in the database using mysql. I think I am doing wrong.


Is there a way to require the user to check the button before they hit the "Submit" button?

Thank you in advance

No comments posted yet

Your Answer:

Login to answer
248 Like 43 Dislike
Previous forums Next forums
Other forums

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Saving PHP output as a file
I wondered if anyone knows how to save the rendered output of a PHP script as a file?

I have

header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1

Deleted Delivery but material wont return
We deleted a delivery but the material its still pending.

We made a reverse goods movemen

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

Add User script "Could not execute query"
This should be an easy script but I can't get it to run. Can someone please help me?

<

show the direct link into href
I want to display link on the page. i am fetching the data(URL) from database,actually before that i

extract data
Code: <div class="post hentry uncustomized-post-template">

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash