To connect to an existing Database and access the tables with-in so, the said User must have the proper grant access to the said Databases:
ex.:
define ('DB_USER', 'vins');
define ('DB_PASS', 'sysdba');
define ('DB_HOST', 'vins.vinsky2002.org');
define ('DB_NAME', 'foobirds');
$dbc = @mysql_connect(DB_HOST, DB_USER, DB_PASS) or die('could not connect to MySQL ' . mysql_error());
@mysql_select_db(DB_NAME) or die ('could not access the database ' . mysql_error());
If there's an Error found, an Error message will be posted on screen and IF all goes well, then nothing will happen on screen. It's just a blank page.
|