Page 1 of 1

One Query Executed successfully, while the other two didn't

Posted: Mon Jul 17, 2006 10:25 pm
by matt1019
Hi guys,


Problem sovled guys

solution to the problem was:

I was missing ' (apostrophe) in the following line:

".$dataxyz['user_id']."

this was finally noticed, thanks to the post by mysql guru astions (look for post below this one)

also, i did this at the top of my php page (after the <?php tag):

Code: Select all

error_reporting(E_ALL);
This is what helped me find out what my error was. here's what the page had to say when I had ".$dataxyz[user_id]."
Notice: Use of undefined constant user_id - assumed 'user_id' in $$$\DIR NAME\###\###.php on line 233
Thanks,

-Matt

Posted: Mon Jul 17, 2006 10:33 pm
by Benjamin
Try..

Code: Select all

echo mysql_error();
That should make it easier to find the problem right :)