However, I can't connect to the db. I'm using the file
CODE
<?
// name of your database
$database = "akagicreative_com_-_weblog";
// connect to database
$db = mysql_connect("http://www.akagicreative.com/", "myusername", "mypassword");
mysql_select_db("$database",$db);
?>
// name of your database
$database = "akagicreative_com_-_weblog";
// connect to database
$db = mysql_connect("http://www.akagicreative.com/", "myusername", "mypassword");
mysql_select_db("$database",$db);
?>
I put the file in /cgi-bin/mt/php,
but when I access the file, I get a 500 internal server error. Is the php file in the wrong place? Am I accessing the db incorrectly? Thanks for your help.