Jim, > I am running PHP and MySQL on the following platforms;Windows 2000, XP and > ME and I am finding that the same code does not work. Can some one please > explain this to me? > It fails on the connect string every time. Is there a reason for this? > > Windows 2000 = No work > XP = No work > ME = Does work > > $connection = @mysql_connect("localhost", "myUserName", "MyPassword") > or die("Couldn't connect.");
If the other machines are to connect to MySQL on the ME box, then "localhost" isn't going to work - but you don't mean that, you have three separate but almost identical installations, don't you? Have all three machines been set up with the same userId and pswd, so there's no issue there? On each machine, and using that/those ID/pswds, can you connect to a DB/tbl by using the command line client or MySQLControlCenter? Rather than using DIE, what happens if you ask for the error number and text? Please advise, =dn -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php