> i have the dbconnect.php as :
> mysql_connect("192.168.0.111" , "root" , "pass") or
> die ("Couldn't connect to database");
> mysql_select_db("DatabaseName") or
> die("sorry database not found");
> when i put localhost instead of the IP address of my machine (localy)
> the following error...
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> resource in c:\inetpub\wwwroot\kt\superv_list.php on line 5
> No Data Found..
> what is my problem, this was a test to connect to my database on the
> machine . but i replaced the "localhost" with my machine IP address..
> have to put a domain name instead of an IP if i want to connect to a
> server on the internert?
Your query failed. Use mysql_error() to find out why.
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php