Not sure this is the solution, but you do not quote the value for your variables.
[PHP]// connect to the mysql server
$link = mysql_connect('localhost', 'root', 'admin')
or die ("Could not connect to mysql because ".mysql_error());
// select the database
mysql_select_db('members')
or die ("Could not select database because ".mysql_error());[/PHP]