Forum Moderators: coopster
It was working fine, but i fiddled with something and then tried to set it all back and now it doesnt work.
Can anyone shed some light?
[Or if you do a lot PHP programming, invest some time in implementing a good logging class, something that dumps debugging text to a file, and preferrably supports varying levels of debugging, e.g. 0=super-detail ... 100=major, that you can ajdust at run-time.]
Anyhow, i'd start off with dumping the contents of $_SERVER and $_REQUEST, and maybe $_GET:
echo "<!-- _SERVER=".htmlentities(var_export($_SERVER, true))."-->\n";
echo "<!-- _REQUEST=".htmlentities(var_export($_REQUEST, true))."-->\n";
And if they look ok, echo the contents of your ID variable after assignment, and your SQL statement before execution.
If i were to guess on the problem, i'd say either your <form> action attribute has dropped the ID, and/or the <form> is doing a POST and your ID lives in the $_POST global now. Double-check that with a view page source.
Hope this helps.
[edited by: eelixduppy at 12:33 am (utc) on Aug. 7, 2009]
[edit reason] disabled smileys [/edit]