Thread: Some help
View Single Post
Old 02-27-2009, 09:53 PM   #6 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

That's wicked. It worked though! Thanks!

The thing is that:
PHP Code:
$this->loadQuery($sql)->exeQuery(); 
this line, should execute this part of the code in that function:

PHP Code:
if($sql == NULL)
            {
               
                if(isset(
$this->query_sql))
                {
               
                    
$this->query_result mysql_query($this->query_sql$this->conn);
                   
                    if(
$this->query_result
                    {
                        
                        return 
$this;
                        
                    }
                    
                    return 
'Query did not work';
                   
                }
               
                return 
'Query sql not provided';
               
            } 
because no SQL value is passed.
And in THAT code, I return a value. I didn't think I'd need to return the function when I'm returning values IN that function :O

Tricky..
But it's working, thanks!
__________________
Tanax is offline  
Reply With Quote