I am trying to make a new Register script. But now, there is only one thing that is not working.. I can't make the following query work.
CODE
mysql_query("INSERT INTO members(username, password, email, register_date) VALUES ('$user','$pass','$email', '$reg_date')") or die("Failed to register.<br> Error:".mysql_error());
this is the current date variable, that is causing the error. (if I remove it from the query, it works just fine)
CODE
$reg_date=date("Y/m/d");
this is the error I am getting:
QUOTE
Error:Data truncated for column 'register_date' at row 1
in the database I gave it the data type int, because the date is only made out of numbers.
Thanks for your help //Feelay

