Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 759 Bytes

README.md

File metadata and controls

20 lines (19 loc) · 759 Bytes

PhotoboothRegSystem

Registration System for Valentines Photobooth for Informatics College Northgate

  1. Change the mysql ip/hostname, username and password, and database on action.php
// Database connection
$conn = new mysqli('iporhostname','usernamehere','passwordhere','databasenamehere');
if($conn->connect_error){
    die('Connection Failed : '.$conn->connect_error);
}else{
    $stmt = $conn->prepare("insert into photobooth_data (serial, name, email) values (?, ?, ?)");
    $stmt->bind_param("sss", $serial, $name, $email);
    $stmt->execute();
    mkdir("pictures/$serial", 0777, true);
    $stmt->close();
    $conn->close();
}
  1. Create a table called photobooth_data and columns : serial, name and, email.
  2. Start using the webpage.