Article:
  Building a Simple Search Engine with PHP
Subject:   mysql_fetch_array() error
Date:   2005-01-21 14:43:31
From:   Lykerus
Hello,

I am having a strange problem when trying to populate the db. I am new to db's so be patient with me. I noticed that Sean had this same problem earlier, but I couldn't find the solution he found.


The error I get is:

mysql_fetch_array(): supplied argument is not a valid MySQL result resource


I tried a roundabout way of using this ($row = mysql_fetch_array($result);) tag, but it doesn't work. When I try and search, it seems as though the database hasn't been populated.


Can anyone help? Please and thank you!

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • mysql_fetch_array() error
    2005-01-26 15:54:55  peetycox [View]

    Hi

    I'am getting the same error it reads:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\appserv\www\scn\search.php on line 30

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\appserv\www\scn\search.php on line 70
    Indexing: social

    Its driving me mad, this thing is great and just what i need. Please some tell what i need to do

    Thanks

    Peetycox