Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <li style="list-style-type: none"><a class="item fa fa-facebook" href="https://www.facebook.com/sharer/sharer.php?u=http://www.poloniawholandii.com/artykul.php?id=<?php echo "$id" ?>&text=<?php echo "$tytul" ?>" target="parents" >&nbsp;<span style="font-size: 0.9em;font-family:Montserrat;" class="count">
  2.  
  3.  
  4.  
  5. <script>
  6. $( ".item fa fa-facebook" ).click(function() {
  7.  
  8. <?php
  9.  
  10. if (isset($_GET['id_strony'])) {
  11. $id = $_GET['id_strony'];
  12.  
  13. }
  14.  
  15. $query11 = $mysqli->query("INSERT INTO fb (id, fb_count, id_strony)VALUES('', '$fb_count', '$id_strony')");
  16. $query11 = $mysqli->query("UPDATE `fb` SET `fb_count`=`fb_count`+1 WHERE id_story=$id");
  17. ?>
  18. }
  19. </script>
  20. <?php
  21.  
  22.  
  23.  
  24. $query11 = $mysqli->query("SELECT fb_count FROM `fb` WHERE `id_strony`=$id ");
  25.  
  26.  
  27. $total_count = mysqli_fetch_row($query11);
  28.  
  29. ?>
  30. <span style="font-size: small">
  31. <?php echo "$total_count[0]"; ?>
  32.  
  33. </span>
  34. </span></a></li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement