[mysql_connect error]

<?php $conn_error = 'could not connect.'; $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_pass = ''; mysql_connect($mysql_host, 'alsdjflkasdf', '') or die($conn_error); echo 'connected'; ?>

guys the above is my code… and the problem is… when i connects to a database using mysql_connect with any username it connects why is so happening? even when i write only “mysql_connect()” it connects…
sory for my bad english.

Sponsor our Newsletter | Privacy Policy | Terms of Service