php - Update in time in MySQL is not working -


I am trying to insert date time on MySQL DB. I have kept the area as VARCHAR (9 182)

  date_default_timezone_set ('Asia / Kolkata'); $ Timestamp = date ("m / d / y h: i: s a", time ()); $ Utimeprocess = "UPDATE tabelconf SET time_of_pstart = '.mysql_escape_string ($ timestamp). "'WHERE UniqueID ='" .mysql_escape_string ($ dbUniqueID) "'"; $ Result = mysql_query ($ utimeprocess);  

return of $ 1 result

This means that it Succeeded. From:

For other types of SQL statements, INSERT, updates, delays, drop, etc., mysql_query () returns TRUE to success or wrong on error.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -