No error for wrong user name my sql

Closed
royroyroy Posts 1 Registration date Thursday January 2, 2014 Status Member Last seen January 2, 2014 - Jan 2, 2014 at 11:45 AM
 Blocked Profile - Jan 2, 2014 at 11:46 AM
<?php
$con = @mysql_connect("localhost","root","vh");
if (!$con)
{
die('Could not connect: ' );
}

// some code

echo "yes";
?>

the code shows no error if an invalid user name is given.
Related:

1 response

Blocked Profile
Jan 2, 2014 at 11:46 AM
Ok, so I agree. What is your question?
0