[php]<?php
$host = “localhost”; //Host where this database is running.
$user_name = “root”; //Your MySQL Server’s user name
$password = “yyyyyyy”; //Your MySQL Server’s Password
$db_name = “xxxxx”; //Your MySQL Server’s Database.
//Now connect
mysql_connect($ host, $user_name, $password) or die(mysql_error ());
//Now you are connected to MySQL, so choose the databse you want to use
mysql_select_db ($db_name) or die(mysql_error ());
echo “Database: $db_name selected successfully”;
?>[/php]it is not working
page showing HTTP500 internal server error
plz help some one
$host = “localhost”; //Host where this database is running.
$user_name = “root”; //Your MySQL Server’s user name
$password = “yyyyyyy”; //Your MySQL Server’s Password
$db_name = “xxxxx”; //Your MySQL Server’s Database.
//Now connect
mysql_connect($ host, $user_name, $password) or die(mysql_error ());
//Now you are connected to MySQL, so choose the databse you want to use
mysql_select_db ($db_name) or die(mysql_error ());
echo “Database: $db_name selected successfully”;
?>[/php]it is not working
page showing HTTP500 internal server error
plz help some one
Comment