-
-
Save anonymous/1609a5d80ab5d06162b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ملف الاتصال | |
<?php | |
$localhost="localhost"; | |
$db_user="root"; | |
$db_password="root"; | |
$db_name="web"; | |
$connect=mysqli_connect($localhost,$db_user,$db_password,$db_name) or die(mysql_error()); | |
?> | |
___________________________________________________________________________________________________________ | |
<?php | |
session_start(); | |
include'Contact.php'; | |
$username=$_POST['username']; | |
$password=$_POST['password']; | |
$query= mysqli_query($connect,"SELECT * FROM users WHERE username='$username' and password='$password'"); | |
$num = mysqli_num_rows($query); | |
if($num == 1){ | |
$_SESSION["username"] = username; | |
$_SESSION["password"] = password; | |
header("location:Member.php"); | |
} | |
else{ | |
echo"خطا فى الدخول "; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ملف
connect.php
ملف
index.php