I want to set a record in mysql table. It goes like this:
mysql_query("UPDATE posts SET creatdate = $timestring WHERE postid = 1 ");
I get $timestring from anther record in this table:
while($row = mysql_fetch_array($table)){
$timestring = $row['creatdate'];
and
echo $timestring;
get
2015-07-30 18:32:18
why can't I set this record