Jump to content

Script check do Data are insert in DB or No


msafvati

Recommended Posts

$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}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.