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
Recommended Answers
Jump to PostIt tests if both variables are not empty.
Jump to Posthey is somebody there im waiting for help
I thought I answered your question. :(
Pritaeas has clarified, I hope that's enough for you.
Please mark as solved if it is.
All 6 Replies
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.