earthman
01-02-2007, 07:09 AM
Hello all,
Im a fairly competent PHP programmer and new to monster. I am using a very simple db connect script below to access my db. Ive used this script for years with various hosts with no probs. Just wondering if im missing something regarding monster:
<?php
$db = mysql_connect("localhost", "prefix_user", "password");
mysql_select_db("prefix_database",$db);
?>
I really cant see what is going wrong. All the info is correct, no spelling mistakes etc but i always get "No database selected."
Please help!!!!
Im a fairly competent PHP programmer and new to monster. I am using a very simple db connect script below to access my db. Ive used this script for years with various hosts with no probs. Just wondering if im missing something regarding monster:
<?php
$db = mysql_connect("localhost", "prefix_user", "password");
mysql_select_db("prefix_database",$db);
?>
I really cant see what is going wrong. All the info is correct, no spelling mistakes etc but i always get "No database selected."
Please help!!!!