Hi
I am trying a simple example in php. I have designed a form, when the user registers, I try to create their joining date.
then the sql gets that valueCode:CREATE TABLE Users ( usrnm varchar(15) NOT NULL, regdate datetime default NULL )
The error I am getting isCode:$sql = "INSERT INTO Users (usrnm, regdate) VALUES ('".$usrnm."' , '".NOW()."')";
I think this is because I may have created a wrong syntax. Please help. Any advice on this.Code:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
Bookmarks