Thanks for your help but nothing wrong with the details. I tried your code and it came up with no errors at all.
My code works on local server and also works on 1 public server but the other 2 just throw the same error. Below is the configure command part of the phpinfo() for one of the servers that doesn't work.
Thanks,
Ewan
Main Topics
Browse All Topics





by: gunnyPosted on 2009-05-03 at 10:21:39ID: 24290535
Hi ewan69,
I guess the code is fine, but the login to the DB did not work (that's why you don't have a valid link ressource!). Please check:
- hostname
- username/password
if you *think* those settings are ok, you should have a look at the return codes for mysql_connect and mysql_select_db! See the sample code below.
Cheers
Gunny
Select allOpen in new window