#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    5
    Rep Power
    0
    Hello guys, i'm a newbie to php, i just copy a sample code here which displays a records into a pages, but when i execute this code i got this error:

    Warning: Supplied argument is not a valid MySQL result resource in DOCUMENT_PATH/file.php on line NUMBER

    where:
    DOCUMENT_PATH = document tree of apache
    NUMBER = the line number in the .php with error

    any suggestion will be appreciated.
    Thanks.

    JarsofClay

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    Post the code itself, including the actual line number. that is the only way it can be effectively troubleshot.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    London/UK
    Posts
    91
    Rep Power
    14
    Sounds like you're not passing a valid result pointer into another php mysql function

    i.e.
    $sql = "select whatever from summit";
    $stuff = mysql_fetch_array($sql);
    would give that error

    OR

    more likely, you're using mysql_num_rows($result_pointer) when there is no data to count

    as aarongb says post us a snippet of code (you don't have to post the whole app BTW)

    Bealers


    ------------------
    http://back-end.org

    [This message has been edited by Bealers (edited September 14, 2000).]

Similar Threads

  1. Run .bat file from web page
    By gadgetboy_karl in forum PHP Development
    Replies: 4
    Last Post: May 31st, 2005, 02:04 AM
  2. Problem calling web pages by name... HELP
    By mumick in forum PHP Development
    Replies: 5
    Last Post: February 23rd, 2004, 03:34 PM
  3. Problem web server access
    By caohocle in forum Networking Help
    Replies: 1
    Last Post: February 19th, 2004, 12:06 PM
  4. how to auto adjust resolution of web page??
    By tulip in forum ASP Programming
    Replies: 2
    Last Post: February 5th, 2004, 08:17 AM
  5. 2 web page probs - IE printing & trouble scrolling
    By cduffey346 in forum HTML Programming
    Replies: 0
    Last Post: February 4th, 2004, 03:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo