dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Insert date and time to mysql. Php code

  1. #1
    Join Date
    Jun 2013
    Posts
    1

    Insert date and time to mysql. Php code

    How to add time in mysql database from a textbox.

    <form name="addTime" action="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
    <input type="text" name="time" />
    <input type="submit" name="enterTime" />
    </form>

  2. #2
    Join Date
    Jun 2013
    Posts
    11
    Take a time in variable which is as shown below
    $time=$_REQUEST['time'];
    Establish database connection then fire query to insert data in database.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles