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 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. 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. Link to comment https://forums.phpfreaks.com/topic/158286-solved-empty-mysql_error/#findComment-834919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.