msafvati Posted January 10, 2008 Share Posted January 10, 2008 i want to know Script check do Data are insert in DB or No! $query="select user,pass from tblname where username = '".$_GET['txt1'] and password = '".$_GET[['txt2']"'"; as for this code how do cheking data in db? plese guid me this is important for me Quote Link to comment Share on other sites More sharing options...
adam291086 Posted January 10, 2008 Share Posted January 10, 2008 I have no idea what you want. Your english is very bad. Can you explain better Quote Link to comment Share on other sites More sharing options...
jaymc Posted January 10, 2008 Share Posted January 10, 2008 $query="select user,pass from tblname where username = '".$_GET['txt1'] and password = '".$_GET[['txt2']"'"; $doq = mysql_query($query); $valid = mysql_num_rows($doq); if ($valid == 1){YES, THERE USERNAME AND PASSWORD IS CORRECT} else if ($valid == 0){NO, THERE USERNAME AND PASSWORD IS WRONG} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.