Jump to content

Saving Date/Time to mysql database ?


yusufhermanto

Recommended Posts

just in your database, make either a text field, and fill it with a time(), or make a timestamp field

 

this my code:

mysql_query("delete from pr where no_pr='".$nopesanan."'");

                                        $s="insert into pr

(no_pr,tgl_pr,kd_cust)

values('".$nopesanan."',

'".Time()."','".$cbocust."')";

    mysql_query($s) or die(mysql_error());

 

 

this code can not save date for tgl_pr field

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.