SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: mysql warning

Hybrid View

  1. #1
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql warning

    Hi,
    I'm totally newbie in MySql, have downloaded a php guestbook script, uploaded all to server and everything is working fine, except a warning message which appears at the bottom of the page :
    Code:
    Warning: (null)(): 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0
    I don't know what that means so I need Your help guys...
    Thanks in advance!!!!

    Full time ADMIN - art community
    Part time coder - dsign

  2. #2
    Simulation Cricketer
    Join Date
    Sep 2004
    Location
    australia
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Judging by the error, it seems you will need to free the result as stated in the error.

    In this case though, it is probably best if you contact the developers of the software...

  3. #3
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The probleme is I don't remember from where I downloaded the script, and in the script itself there's no information about the developer....

    Full time ADMIN - art community
    Part time coder - dsign

  4. #4
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In terms of pseudo-code, after this:
    PHP Code:
    $res mysql_query(...);
    while (
    $row mysql_fetch_*($res))
    {
       ...

    try adding this:
    PHP Code:
    mysql_free_result($res); 

  5. #5
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the tip, I've tried but it didn't work... Maybe I put it in wrong place? I can post the source if that can help you to debug....

    Full time ADMIN - art community
    Part time coder - dsign


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •