I have been having problems connecting my mysql server to my php script,i even used this script to have a confirmation that my connection was successful to no avail;
/ Connect to the database server
$dbcnx = @mysql_connect('localhost', 'root', 'mypasswd');
if (!$dbcnx) {
exit('<p>Unable to connect to the ' .
'database server at this time.</p>');
} else {
echo '<p>Database connection established.</p>';
}
Please test the code on your server and see if you'll see a response on your browser like 'Database connection established'
Each time i execute a php script on my server(just like the code sample above) that is meant to connect to my database,select it and retrieve data it instead gives me a blank page instead of the data i requested.
Can someone help me with that.i'm stuck!is there something i have not done or i am missing cos that's the basis of develping a php website in the first place.
I even tried to use the mysq root-username and passwordi registered the server with during my installation but to no avail.
Looking forward to hearing your responses
John