[sql] Easiride

Viewer

copydownloadembedprintName: Easiride
  1. CREATE DATABASE `Paschal` CHARACTER SET armscii8 COLLATE armscii8_bin
  2. <?php
  3. // INDEX.php (Welcome Page)
  4.  
  5. // Include any necessary files OR libraries here
  6.  
  7. // Initialize SESSION (IF needed)
  8. session_start();
  9.  
  10. // CHECK IF the USER IS already logged IN (you can customize this logic)
  11. IF (isset($_SESSION['user_id'])) {
  12.     // Redirect TO the dashboard OR home page
  13.     header('Location: dashboard.php');
  14.     exit;
  15. }
  16.  
  17. // Your DATABASE connection details (UPDATE WITH your own)
  18. $host = 'localhost';
  19. $username = 'your_db_username';
  20. $password = 'your_db_password';
  21. $database = 'your_db_name';
  22.  
  23. // CONNECT TO the DATABASE
  24. $conn = mysqli_connect($host, $username, $password, $database);
  25.  
  26. // CHECK IF the connection was successful
  27. IF (!$conn) {
  28.     die('Database connection failed: ' . mysqli_connect_error());
  29. }
  30.  
  31. // Display the welcome page HTML
  32. ?>
  33. <!DOCTYPE html>
  34. <html lang="en">
  35. <head>
  36.     <meta charset="UTF-8">
  37.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  38.     <title>Welcome TO Our Taxi App</title>
  39.     <link rel="stylesheet" href="styles.css"> <!-- You can link to your CSS file here -->
  40. </head>
  41. <body>
  42.     <header>
  43.         <h1>Welcome TO Our Taxi Service</h1>
  44.         <p>Your Reliable Ride Anytime, Anywhere</p>
  45.     </header>
  46.  
  47.     <main>
  48.         <SECTION class="features">
  49.             <!-- Add feature descriptions here -->
  50.             <div class="feature">
  51.                 <img src="images/book-taxi.png" alt="Book a Taxi">
  52.                 <h2>Book a Taxi</h2>
  53.                 <p>Quickly book a taxi FOR your NEXT ride.</p>
  54.             </div>
  55.             <div class="feature">
  56.                 <img src="images/track-taxi.png" alt="Track Your Taxi">
  57.                 <h2>Track Your Taxi</h2>
  58.                 <p>Real-TIME tracking TO know WHERE your taxi IS.</p>
  59.             </div>
  60.             <!-- Add more features as needed -->
  61.         </section>
  62.  
  63.         <SECTION class="cta">
  64.             <h2>Ready TO GET Started?</h2>
  65.             <p>Download our app AND enjoy hassle-free rides!</p>
  66.             <a href="download.php" class="btn">Download Now</a> <!-- Link to your app download page -->
  67.         </section>
  68.     </main>
  69.  
  70.     <footer>
  71.         <p>© 2024 TaxiApp. ALL rights reserved.</p>
  72.     </footer>
  73. </body>
  74. </html>
  75. <?php
  76. // Close the DATABASE connection
  77. mysqli_close($conn);
  78. ?>
  79.  

Editor

You can edit this paste and save as new:


File Description
  • Easiride
  • Paste Code
  • 29 Apr-2024
  • 2.33 Kb
You can Share it: