Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
error on my phpBB board
Old 08-29-2007, 06:38 AM error on my phpBB board
Average Talker

Posts: 22
Trades: 0
I have this error on my board while registering
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/.orsel/account/domain.com/db/mysql4.php on line 318

all code on and after line 318

Code:
mysql_free_result($query_id);

            return true;
        }
        else
        {
            return false;
        }
    }

    function sql_error()
    {
        $result['message'] = mysql_error($this->db_connect_id);
        $result['code'] = mysql_errno($this->db_connect_id);

        return $result;
    }

} // class sql_db

} // if ... define

?>
please help
__________________

Please login or register to view this content. Registration is FREE
maxidrom11 is offline
Reply With Quote
View Public Profile Visit maxidrom11's homepage!
 
 
Register now for full access!
Old 08-29-2007, 10:08 AM Re: error on my phpBB board
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Find out under what conditions the query '$query_id' runs. When mysql_free_result resurns this error, it usually means there is no result assigned to the var.

This is generally the case when a query only runs when certain conditions are met, such as a successful logon. You need to ensure mysql_free_result($query_id) only runs under the same condition.

At any rate, the resource will be freed up when the script finishes. Unless this is a memory hungry script, mysql_free_result really isn't required.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Reply     « Reply to error on my phpBB board
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23606 seconds with 12 queries