prepare("SELECT user_id FROM users WHERE email = ?"); $stmt->execute([$email]); if ($stmt->rowCount() > 0) { $error = "Email already registered"; } else { // Hash password $hashed_password = password_hash($password, PASSWORD_DEFAULT); // Generate verification token $verification_token = bin2hex(random_bytes(32)); // Insert new user $stmt = $db->prepare("INSERT INTO users (email, password, first_name, last_name, phone, verification_token) VALUES (?, ?, ?, ?, ?, ?)"); $stmt->execute([$email, $hashed_password, $first_name, $last_name, $phone, $verification_token]); // Send verification email (pseudo code) // sendVerificationEmail($email, $verification_token); // Redirect to success page $_SESSION['registration_success'] = true; redirect('registration-success.php'); } } } // Display registration form ?>
Already have an account? Login here
Buy your tickets now for a chance to win the monthly prize. 80% goes to the winner, 20% is our commission.
Purchase tickets for $10 each. Each ticket gives you one entry into the monthly draw.
The draw happens automatically on the last day of each month at midnight UTC.
One lucky winner gets 80% of the total pot. We keep 20% as commission.
May 2023
"I couldn't believe it when I won! The money was in my account within 24 hours."
April 2023
"This came at the perfect time. I used the money to pay off some medical bills."
March 2023
"I bought just one ticket on a whim. Best $10 I ever spent!"