Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. </head>
  2. <body>
  3. <form action="elabora.php" method="post">
  4. <input id="username" type="textbox" value="Inserire UserName" name="username">
  5. <input id="submit" type="button" value="trova indirizzo sulla mappa">
  6. </form>
  7. <div id="map"></div>
  8. </body>
  9. </html>
  10.  
  11.  
  12. ---------------------------------------------------------------------------
  13.  
  14. <?php
  15.  
  16. require("login.php");
  17.  
  18. $connection=mysql_connect ($host, $username, $password);
  19. if (!$connection) {
  20. die('Non connesso : ' . mysql_error());
  21. }
  22.  
  23. $db_selected = mysql_select_db($database, $connection);
  24. if (!$db_selected) {
  25. die ('database non selezionato : ' . mysql_error());
  26. }
  27.  
  28. $query = "SELECT * FROM radckeck_gigi";
  29. $results = mysql_query($query);
  30.  
  31.  
  32. $query = "SELECT * FROM radckeck_gigi WHERE username = username";
  33. $row = mysql_query($query);
  34. $Indirizzo = $row["Indirizzo"].",".$row["Comune"].",".$row["CAP"];
  35.  
  36. ?>
Add Comment
Please, Sign In to add comment