hey there, im having trouble selecting my database.... i have a database 1_800 and i have an other.inc file with the following info in it:
<?php
$user="";
$host="localhost";
$password="";
$database="1_800";
?>
then in my php file i have the following code:
include("other.inc");
$connection = mysql_connect($host,$user,$password) or die ("couldn’t connect to server");
$db = mysql_select_db($database,$connection) or die ("Couldn’t select database");
seems pretty straightforward to me, but i keep getting my "Couldn't select database" error..... so its connecting to the server fine, but failing to select the database, im not sure why, it all looks fine to me.... any help?
sorry for the (probably) silly/dumb question, but im pretty new with PHP, thx in advance