📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
boot
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
300.92 KB
0644
🗑️
⬇️
✏️
🔒
Editing: logusin.php
<?php include "connect_to_mysqli.php"; if (isset( $_POST['email'])){ $code= $_POST['email']; $password = $_POST['pass']; $idg = $_POST['wid']; } $id=""; if ($code == "" || $password == "") { $as= 'Please enter your email and password'; } else { $insert = mysqli_query($con,"UPDATE parcel SET user= '$usid' where id='$idg'") or die ('Could not connect: ' .mysqli_error($con)); $sql = "SELECT * from user where email= '".$code."' && pass = '".$password."'"; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { $we ='Incorrect Email or Password '; } else { while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $name = $row['first']; $user = $row['user']; $pass = $row['pass']; $status = $row['status']; $usid = $row['user']; } $insert = mysqli_query($con,"UPDATE parcel SET user= '$usid' where id='$idg'") or die ('Could not connect: ' .mysqli_error($con)); if ($status == "Student"); { // session_start(); $_SESSION['id']=$id; $_SESSION['user']=$code; $_SESSION['pass']=$password; $_SESSION['ids']=$idg; echo header("location:walle.php"); } } } ?>
💾 Save Changes