View Single Post
  #1 (permalink)  
Old 08-17-03, 07:39 PM
EST EST is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Can't select database

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?
Reply With Quote