I normally connect as follows
<?
$link = connect("localhost","root","root345") or die(mysql_error());
?>
Remove the root@localhost part and normally the root does not have a password, so if there is no password set just enter
mysql_connect("localhost","root","");
In the above example i assumed that your password was root345
INTERNUT
|