Article:
  Building a Simple Search Engine with PHP
Subject:   another success
Date:   2005-02-15 14:50:47
From:   Lykerus
For those that were having trouble with the


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


Try something like this code:
$MySQLPassword = "password";
$HostName = "localhost";
$UserName = "username";


mysql_connect($HostName,$UserName,$MySQLPassword)
or die("ERROR: Could not connect to database!");
mysql_select_db("database_name");


I haven't worked on this engine for a few weeks, but decided to rewrite the connection script and see if I could get things working. It now works great!


Thanks for this tutorial! It is a great one!

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • oops
    2005-02-15 14:52:03  Lykerus [View]

    sorry that got posted twice!

    --Lykerus