私のウェブサイトからphpを使用してデータベースに接続しようとしています。次のコードを使用して接続を行いましたが、
$db_host="10.12.209.82";
$db_username="username";
$db_pass="pass";
$db_name="DBName";
mysql_connect($db_host,$db_username,$db_pass) or die("Could not connect to my sql");
mysql_connect($db_name) or die("No Database");
しかし、私のウェブサイトでファイルを実行すると、次のエラーが表示されます...
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
何が問題で、どこで間違えたのですか?