I just installed PHP and mySQL on my machine (win2k).
The PHP test script is working ok.
I was able to create the sql database and tables, but when I try to run the example to connect php and sql :
it's not connecting to MySQL, that's what the first 2 Warnings are. the others are from you trying to run a query and get its results on a non-existent connection.
you don't have a password specified in mysql_connect. try changing that to mysql_connect('localhost', 'root', 'yourpassword').
also, if u installed it on your own computer sometimes all u need is local host, no username or password... well thats how it was when I installed it (mysql)
Bookmarks