View Single Post
  #2 (permalink)  
Old 07-01-2003, 08:40 PM
IACOJ IACOJ is offline
Moderator
 
Join Date: Nov 2002
Posts: 737
You might want to change your title so people know you have an sql error, you might get more help that way. Anyway....

Is this a new install, have you just added a new block or module etc? Did you just try to modify some existing code somewhere? Anything like that?

Where does the error show up? Header, footer, all over the page, only in certain pages etc.

Also can you turn debugging on? Change lines 252-255 in sql_layer.php from:
Code:
    case "MySQL": 
        $rows=mysql_num_rows($res); 
        return $rows; 
    break;;
to:
Code:
    case "MySQL": 
        if ($rows=mysql_num_rows($res)) { 
        return $rows; 
        } else { 
        print (mysql_error()); 
        } 
        break;;
Reply With Quote