This commit is contained in:
louiscklaw
2025-01-31 19:15:17 +08:00
parent 09adae8c8e
commit 6c60a73f30
1546 changed files with 286918 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
if($_POST["Cpassword"]==$_POST["password"]){
require_once("ini/conn.php");
$sql = "SELECT dealerID FROM dealer WHERE dealerID='$_POST[dealerID]'";
$result = mysqli_query($conn, $sql) or die(mysqli_error($conn));
if(mysqli_num_rows($result)>0)
header("location: index.php?regRe=FALSE");
else{
extract($_POST);
$sql = "INSERT INTO dealer VALUES('$dealerID','$password','$dealerName','$phoneNo','$Address')";
$result = mysqli_query($conn, $sql) or die(mysqli_error($conn));
if(mysqli_affected_rows($conn)==1){
mysqli_free_result($result);
mysqli_close();
header("location: index.php?Register=TRUE");
}
}
}else{
header("location: index.php?regPwd=FALSE");
}
?>