Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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" > <span style="font-size: 0.9em;font-family:Montserrat;" class="count">
- <script>
- $( ".item fa fa-facebook" ).click(function() {
- <?php
- if (isset($_GET['id_strony'])) {
- $id = $_GET['id_strony'];
- }
- $query11 = $mysqli->query("INSERT INTO fb (id, fb_count, id_strony)VALUES('', '$fb_count', '$id_strony')");
- $query11 = $mysqli->query("UPDATE `fb` SET `fb_count`=`fb_count`+1 WHERE id_story=$id");
- ?>
- }
- </script>
- <?php
- $query11 = $mysqli->query("SELECT fb_count FROM `fb` WHERE `id_strony`=$id ");
- $total_count = mysqli_fetch_row($query11);
- ?>
- <span style="font-size: small">
- <?php echo "$total_count[0]"; ?>
- </span>
- </span></a></li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement