Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $dbname = "trackers";
  6. $mysqli = new mysqli($servername, $username, $password, $dbname);
  7. $result = $mysqli->query("SELECT * FROM trackers WHERE id='" . $_SESSION['id'] . "'");
  8. while($q = $result->fetch_object()) {
  9. echo sprintf("<h4><a href=\"%s\">%s</a></h4>" . "\n\n",
  10. 'http://localhost/' . '/trackers.php?id=' . $q->id,
  11. ucwords($q->personaje)
  12. );
  13. /*********************************/
  14. echo sprintf(
  15. "<img src=\"%s\" class=\"thumbnail\" title=\"%s\" />\n\n",
  16. 'http://localhost/pics/' . $q->img,
  17. ('Tracker: ') . ucwords( $q->personaje)
  18. );
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement