Thread
:
PHP Can't select database
View Single Post
#
1
(
permalink
)
08-17-03, 07:39 PM
EST
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?
EST
View Public Profile
Find all posts by EST