SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Threaded View

  1. #1
    SitePoint Guru
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    supplied argument not valid

    Hi,

    I don't see anything wrong but i keep getting this message

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/badede/public_html/home.php on line

    The code

    Code PHP:
    $query2 = "SELECT photo_id FROM listing_photo WHERE (listing_id = ' ".$rows['id']. " ' AND key = 1) ";
    $result2 = mysql_query($query2);
    $rows2 = mysql_fetch_array($result2);
    Last edited by runrunforest; Dec 15, 2008 at 23:45.


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
  •