Whenever, I want to access my site ( MySQL-PHP Based), I get the following error message:
Error 1046: No Database Selected.
My connection string looks like:
CODE
$link_id = mysql_connect("localhost", "my_new_db_user_name", "my_new_db_password");
CODE
if(!$link_id) if(!$link_id) error_message(sql_error());
followed by:
CODE
$current_db= mysql_select_db($db_name,$link_id);
Please note that:
My website runs smoothly in my local server without any error . Configuration of my local server is :
Apache 1.3.27(WIN32)/PHP 5.0.4 MySQL Server 4.1
Obviously, I have changed my db_name,db_user_name and db_password in the connection string for the webserver.
Webserver Information:
MySQL version 4.0.26-standard
PHP version 4.4.1
Thanks in anticipation of your reply.
Regards,
Sid

