<?php include ("connect.php"); $email=@$_POST["email"]; $sql="SELECT sname,fname FROM user_db WHERE email='$email' "; $result=mysql_query($sql); // Mysql_num_row is counting table row $count=mysql_num_rows($result); if($count==1){ $info=mysql_fetch_array($result); $sname=$info['sname']; $fname=$info['fname']; } else{ echo "user details not found"; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)