📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
472.69 KB
0644
🗑️
⬇️
✏️
🔒
Editing: login.php
<?php include "connect_to_mysqli.php"; if (isset( $_POST['login'])){ $code= $_POST['mail']; $password = $_POST['password']; $sql = "SELECT * from riders where email= '$code' AND password = '$password'"; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { echo'<span style="color:red;">Incorrect Details! </span>'; } else { while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $name = $row['name']; $status = $row['status']; } if($status == "rider") { session_start(); $_SESSION['id']=$id; setcookie("riderID", $id, time() + (10 * 365 * 24 * 60 * 60)); header("Location: dashboard.php"); } } } ?>
💾 Save Changes