I want to update my users last log in in the database :
<input name="login" type="submit" id="login" onclick="<?php mysql_select_db($database_web, $web) or die("Error : " . mysql_error()); mysql_query("UPDATE users SET timp='NOW()' WHERE username='$user'")or die("Error : " . mysql_error());?>" value="LogIn" />
this is my code but it doesent update the table :|
if i replace the NOW() with a manual time and date it works