thanks for the reply.
It still wont connect to the database. For some reason I have to use the "USE" command in a mysql_query and not mysql_select_db.
I had this problem when I ran a test site on my machine. It wouldnt let me use mysql_select_db. Now this is on the webhost and need to call the database with a variable.
Any other suggestion?
Here's the rest of the code and how I connect to the server and db. I don't think its a very good way. Its the way I was shown in a book. I see other people's code around here and they do it differently. Maybe this is my problem.
$connect = mysql_connect("*****", "*****", "*****") or
die ("Hey, check your server connection.");
//----------------------make sure we're using the right database--------------------
$query = mysql_query("USE $use_db");
//----------------------find max number of links in database-------------------------
$query = mysql_query("SELECT * FROM $linksinfo");
$num_of_links == 1;
while($row = mysql_fetch_array($query)) {
$searching_row = $row["entered"];
$num_of_links++;
}