sjm08 Posted March 13, 2008 Share Posted March 13, 2008 $result=mysql_query("select * from express_interest WHERE id=$id"); $name=mysql_result($result,0,"name"); $id=mysql_result($result,0,'id'); $message=mysql_result($result,0,"message"); $email=mysql_result($result,0,"email"); print mysql_error(); ?> ??? ??? ??? Quote Link to comment Share on other sites More sharing options...
fenway Posted March 13, 2008 Share Posted March 13, 2008 Move the mysql_error() line to the _query() line in a die() statement. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 13, 2008 Share Posted March 13, 2008 What "isn't working" about it? Blank page, is it printing an error? Where is $id set and what is it's value? And it won't work one second and not the next. Something changed. I would make sure error reporting is on and do what fenway says (which is to change the code to the following: <?php $result=mysql_query("select * from express_interest WHERE id=$id") or die("MySQL Error: ".mysql_error()); $name=mysql_result($result,0,"name"); $id=mysql_result($result,0,'id'); $message=mysql_result($result,0,"message"); $email=mysql_result($result,0,"email"); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.