I got a problem when selecting database
This is the code that won't work
PHP Code:
$dbname = 'databasename';
mysql_select_db($dbname);
This code is works
PHP Code:
mysql_select_db('databasename');
I don't know what the problem is, howcome if setup the variable for database's name it unable to select database? can someone tell he how to setup one?