Jump to content

[SOLVED] empty mysql_error()


nbarone

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.