PHP -- still time problem the following code is to implement daily login, then 2 points will be added & nbsp; error: Parseerror: syntaxerror, unexpectedT_VARIABLEinC: Prepare & nbsp; $ thisti PHP-time issues
The following code is used to add 2 points for daily login.
Error: Parse error: syntax error, unexpected T_VARIABLE in C: \ AppServ \ www \ user_reg \ login. php on line 28
$ Thistime = date ("Y-m-d"); // 28 rows
$ Lasttime = $ row ['logtime'];
If ($ thistime-$ lasttime) >=86400)
{Mysql_query ("update register set logTime = now () where id = $ result ['id']");
Mysql_query ("update register set score = $ row ['score '] + 2 where id = $ result ['id']");
}
Also, do you not know if the if statement is correct? Beginner ~~~~ Enlighten me
------ Solution --------------------
Echo 'you have earned logon points today: '. $ row ['score'];
Again, the string connector is. not a comma