ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  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";

or die("ERROR: Could not connect to database!");

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!

1 to 1 of 1
  1. oops
    2005-02-15 14:52:03  Lykerus [View]

1 to 1 of 1