Car Rental Php Script -
if (mysqli_num_rows($result) == 0) redirect('index.php');
// Check if user exists $check = mysqli_query($conn, "SELECT id FROM users WHERE email = '$email' OR username = '$username'"); if (mysqli_num_rows($check) > 0) $error = "Username or email already exists!"; else $sql = "INSERT INTO users (username, email, password, full_name, phone, license_number) VALUES ('$username', '$email', '$password', '$full_name', '$phone', '$license_number')"; if (mysqli_query($conn, $sql)) $success = "Registration successful! You can now login."; else $error = "Registration failed: " . mysqli_error($conn); car rental php script
// Check connection if (!$conn) die("Connection failed: " . mysqli_connect_error()); if (mysqli_num_rows($result) == 0) redirect('index