MySQL Forums
Forum List  »  PHP

Re: Add "now" time from form to DB Problem
Posted by: Peter Brawley
Date: May 06, 2016 01:18PM

Read your code ...

$time = mysqli_real_escape_string($link, $_POST['time']); 

date_default_timezone_set('America/Denver'); 
$time = date("Y-m-d H:i:s");

Lose the second assignment to $time.

Options: ReplyQuote


Subject
Written By
Posted
Re: Add "now" time from form to DB Problem
May 06, 2016 01:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.