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. Quote Link to comment 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.