That is a good idea and I tried it.
I got:
Code:
SELECT gId FROM games WHERE gInCategory=1 AND gDate='0000-00-00 00:00:00' ORDER BY gId DESC LIMIT 3
Warning: Invalid argument supplied for foreach() in /home/user/public_html/file.php on line 102
So the $addGames looks correct and it works in myPhpAdmin.
However, it complains that the foreach argument is invalid. I suspect this is because the $addGames query is not being done. When I have that query take place, then nothing works. I think it is stuck in the foreach() and it never times out because I am not executing the $updateDate query.
In other words, I am still stuck and I'm pretty sure its the UPDATE statement in the foreach. Any other suggestions?
|