Originally Posted by
bill-lancaster
That was stupid! Publishing my password was not a good idea - I've now changed it.
You should edit the original post and either remove it, or just use <password> there.
and your selecting a db.table here?
Code:
mysql_select_db('lancasterfamily.pgv_individuals'
so try just
Code:
mysql_select_db('lancasterfamily') or die('Could not select database');
or should that be
Code:
mysql_select_db('pgv_individuals') or die('Could not select database');
?
What is the db name?
found an old link with this basis as an example.
PHP Code:
<?php
$link = mysql_connect('server.com', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
Connected successfully
Bookmarks