Advertisement
Guest User

Untitled

a guest
Sep 9th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $dbname = "run";
  6.  
  7.  
  8. $conn = mysqli_connect($servername, $username, $password, $dbname);
  9.  
  10. $start = $_POST['start']; //this is from html form
  11.  
  12. $get = "SELECT distance FROM runs WHERE start='City' "; //2nd error
  13. $show = mysqli_query($conn, $get);
  14.  
  15. echo($show); //1st error
  16.  
  17. mysqli_close($conn);
  18. ?>
  19.  
  20. $get = "SELECT distance FROM runs WHERE start="City" ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement