php database connection error

<?php mysql_connect('localhost','abc',''); echo 'connected'; ?>

i wrote above code and try to execute and its saying connected but the source from where i copied it says its should not work beacuse the username abc does not exists.

so why its not producing the server connection error.

regards rizwan.

[php]mysql_connect(‘localhost’,‘abc’,’’)or die(mysql_error());[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service