Can anyone help me fix this MySQL query? I cant figure out what i am doing wrong.
for ($i=1;$i<=12;$i++) {
mysql_query(UPDATE bbank SET created=NOW() + INTERVAL $i MINUTES WHERE bankID='$i' );
}
ERROR:
Parse error: syntax error, unexpected T_STRING in
E:\stuff\www\test\roger.php on line 19
I’ve tried adding brackets, quotes, etc…
It should be
MINUTEand notMINUTESalso missing quotes for whole query: