Guest User

Untitled

a guest
Jun 22nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. $dbhost = "localhost";
  4. $dbuser = "3423";
  5. $dbpass = "dsfsd";
  6. $dbname = "taxi";
  7.  
  8.  
  9. mysql_connect("$dbhost", "$dbuser", "$dbpass") or die(mysql_error());
  10. mysql_select_db("$dbname") or die(mysql_error());
  11.  
  12.  
  13. $result = mysql_query("SELECT * FROM saved WHERE date ")
  14. or die(mysql_error());
  15.  
  16.  
  17. while($row = mysql_fetch_array( $result )) {
  18.  
  19. $dte = $row['date'];
  20. $tme = $row['time'];
  21. if($date.$time == $dte.$tme){
  22. ?><div style="text-align:center;"><h2><BR><BR><BR><BR>The time slot that you have selected has been taken <BR> please go back and try another time slot!</h2><br /><a href="?">Go back</a></div><?php
  23. p_footer();
  24. exit;?>
Add Comment
Please, Sign In to add comment