nbarone Posted May 15, 2009 Share Posted May 15, 2009 here is my code: $getthispage = mysql_real_escape_string($_GET['pg']); $sql = "SELECT * FROM reno_rffd WHERE pg_ID=".$getthispage.""; $result = mysql_result($sql) or die("error in query=\"".$sql."\" on ".$getthispage." : ".mysql_error()); output to page: error in query="SELECT * FROM reno_rffd WHERE pg_ID=2" on 2 : why would mysql_error() come back empty, but die on the result? thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/158286-solved-empty-mysql_error/ Share on other sites More sharing options...
nbarone Posted May 15, 2009 Author Share Posted May 15, 2009 im a retard. Quote Link to comment https://forums.phpfreaks.com/topic/158286-solved-empty-mysql_error/#findComment-834857 Share on other sites More sharing options...
fenway Posted May 15, 2009 Share Posted May 15, 2009 im a retard. Do tell. Quote Link to comment https://forums.phpfreaks.com/topic/158286-solved-empty-mysql_error/#findComment-834919 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.