dimond345 Posted December 1, 2008 Share Posted December 1, 2008 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. Link to comment https://forums.phpfreaks.com/topic/134957-solved-need-help-with-a-code/page/2/#findComment-702932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.