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 Link to comment https://forums.phpfreaks.com/topic/85349-script-check-do-data-are-insert-in-db-or-no/ 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 Link to comment https://forums.phpfreaks.com/topic/85349-script-check-do-data-are-insert-in-db-or-no/#findComment-435471 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} Link to comment https://forums.phpfreaks.com/topic/85349-script-check-do-data-are-insert-in-db-or-no/#findComment-435474 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.