Date: 10/30/06 (PHP Community) Keywords: database So, my problem is that my script seems to be running twice for no apparent reason. I'm not sure what the problem is in the slightest, so here's an over kill explanation about my script; Previous Location: x 4, y 11 Current Location: x 4, y 11 At the moment, they're the same since I've not attempted to move anywhere. If I chose to go right, I would expect the database to be updated with "y" being 11 still but "x" increasing by one to 5. So I press right. Previous Location: x 4, y 11 Current Location: x 5, y 11 Looking good. Nothing wrong so far. If I press right again, "y" should stay the same, though "x" should become 6. So I press right again. Previous Location: x 6, y 11 Current Location: x 7, y 11 Huh? It's just jumped two place right, when it should have only added one to "x". But the "Previous location" tells us that it did indeed go to 6, like it was supposed to at some point. This means that the script must have run twice. If I press right once more, it should become 8. Previous Location: x 8, y 11 Current Location: x 9, y 11 Nope, somehow the script has run twice again, and skipped showing "x=8". Anyone have any idea why it would be doing this? Thanks enormously for your time, even if you don't have a clue what I've just said, or what the problem is.
|