how to select binary_data (PHP - mysql)

r_amin's Avatar
Light Poster
PHP - mysql
-------------
PHP Code:
@mysql_select_db("binary_data") or die("Could not select binary_data database!"); 
It returns =
"Could not select binary_data database!"


why? & How can I solve It?
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Does any DB by that name exists?? If yes, try changing the name of the DB! Plus, try this code!

Code: PHP
@mysql_select_db("binary_data") or die("Could not select binary_data database! Err: ".mysql_error());
0
r_amin's Avatar
Light Poster
Quote:
Originally Posted by pradeep
Does any DB by that name exists?? If yes, try changing the name of the DB! Plus, try this code!

Code: PHP
@mysql_select_db("binary_data") or die("Could not select binary_data database! Err: ".mysql_error());
@mysql_connect("localhost", "root", "ro12p") or die("Could not connect to MySQL server!");
it works. that mean datatabase already connected.