<?php
$conn = mysql_connect() or
die ("Could not connect");
mysql_selectdb("**********")
or die ("Could not select database");
if (!$conn) {
echo"an error occured.\n";
exit;
}
When I run this on my local machine, it runs fine, but when I send this to my host server I get the message "Could not select database".
This host server is a friends machine, which has a highspeed internet connection. My friend is allowing me to setup what I need to get the server up. I believe I missed something in the setup or php, mysql or apache, or with the table permissions. Can someone give me an idea?
Thanks