Ok im using this code
<?php
$host = "localhost"
$username = "seb"
$password = ""
$database = "seb_postit"
$connection = mysql_connect($host, $username, $password);
if (!$connection){
die ("Could Not Connect To Server");
}
$selected_databse = mysql_select_db($database, $connection);
if (!$selected_databse){
die ("Could Not Connect To Database");
}
?>
Why isnt it working.
PS: I took out the password for saftey reasons
but if i try this it works
<?php
$link = mysql_connect('localhost', 'seb', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db('seb_postit', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
?>