So I'm pulling my hair out over the most stupid of situations... I'm trying to save a new time to a MySQL DB and have tried everything I can think of to make this work, but I can't for some reason. Here's what I've got...
$_ = gmdate("Y-m-d H:i:s",time());
if (! mysql_query("UPDATE Accounts
SET likes='1',update='".$_."'
WHERE username='".$_POST['username']."'")) { ... }
I've tried:
update=FROM_UNIXTIME(".$_.")
update=UNIX_TIMESTAMP(".strtotime($_).")
update=UNIX_TIMESTAMP('".strtotime($_)."')
update='".UNIX_TIMESTAMP(strtotime($_))."'
update='".UNIX_TIMESTAMP($_)."'
update='".$_."'
Any help would greatly be appreciated! Thanks, Dave