Jump to content

[SOLVED] Need help with a code!


Chaori

Recommended Posts

I cannon say exactly there, I only know that some parameters is not in right format, but you may find your self with sql_error() function:

 

function GETWHERE($table,$field,$where,$whereequals,$row) {
print "SQL QUERY: "."SELECT $field FROM $table WHERE $where ='$whereequals' <br>";
$query = mysql_query("SELECT $field FROM $table WHERE $where ='$whereequals'");
print "SQL ERROR: ".mysql_errno()." ".mysql_error()."<br>";
$data = mysql_fetch_row($query);
print "SQL ERROR: ".mysql_errno()." ".mysql_error()."<br>";
$return = $data[$row];
return $return;
}

 

There will be log of of all sql query and errors with them. Some of them is not right.

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.