if($username&&$password)
{
$connect = mysql_connect("localhost","root","") or ("Couldn't connect!");
mysql_select_db("phplogin") or die ("Couldn't find db");
$query = mysql_query("Select * FROM users WHERE username='$username'");
$numrow= mysql_num_rows($query);
i just wont to know the IF statement when it stars what is his function in the code.
andyy121 -9 Junior Poster
diafol
andyy121 -9 Junior Poster
andyy121 -9 Junior Poster
Ezzaral commented: Oh, well everyone should just stop their lives and answer you. -3
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
andyy121 commented: thnx pritaeas +2
iamthwee
diafol
andyy121 commented: thnx very helpful your info ; ) +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.