A7M8D Posted January 31, 2019 Share Posted January 31, 2019 السلام عليكم عندي سوال هو اني مثلا مسجل معلومات فالداتا بيس User = Ahmed Email = [email protected] عايز طريقة اني اجيب اليوزر المسجل مع نفس الايميل في الداتا بيس اتمني فهمتوني انا حولت ب MySQL لكني فشلت Link to comment
Master_MTA Posted February 4, 2019 Share Posted February 4, 2019 (edited) On 31/01/2019 at 03:53, A7M8D said: اتمني فهمتوني انا حولت ب MySQL لكني فشلت <?php $con=mysqli_connect(...yourinfo); $email=htmlspecialchars($_POST['email']); if($con){ $query=mysqli_query($con,"SELECT * FROM `table_name` WHERE `email_col_name`='$email'"); $f=mysqli_fetch_assoc($query); if(mysqli_num_rows($query)<=0){return false;}else{ echo $f['username_col_name'];} }else{ echo mysqli_error($con); } ?> بالتوفيق Edited February 4, 2019 by Master_MTA Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now