View Single Post
Old 06-30-2008, 01:56 PM   #11 (permalink)
Jenski
The Wanderer
 
Join Date: Apr 2008
Location: Cloud 9
Posts: 19
Thanks: 0
Jenski is on a distinguished road
Default

Hi Andrew

In this function:
Code:
public function query($szQuery) {
        $this->m_query = mysql_query($szQuery);
        if (!$this->m_query) {
            return 'There was an error while trying to process the query.';
        } else {
            return $this->m_query;
        }
    }
You use a class variable called m_query which isn't defined in the scope of the class only the function. I don't know if that is relevant?
Jenski is offline  
Reply With Quote
The Following User Says Thank You to Jenski For This Useful Post:
codefreek (06-30-2008)