Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?
include('config/db_con.php');
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$top = "SELECT * FROM `like` ORDER BY id DESC LIMIT 0, 15";
$new = mysql_query($top) or die(mysql_error());
while($rows = mysql_fetch_array($new)){
?>
<div style="clear:left;">
<div style="float:left;">
<fb:like layout="button_count" class="like_button" href="<? echo $site;?>like.php?like=<? echo $rows['id']; ?>"></fb:like>
</div>
<a href="<? echo $site;?>like.php?like=<? echo $rows['id']; ?>"><? echo stripslashes($rows['like']);?></a>
</div>
<?
}
?>
<?php
include("config/db_con.php");
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$top = "SELECT * FROM `like` WHERE id='$id' ORDER BY id DESC LIMIT 0, 15 ";
$new = mysql_query($top) or die(mysql_error());
$id = $_GET['id'];
while($rows = mysql_fetch_array($new)){
echo "
<div style='clear:left;'>
<div style='float:left;'>
<fb:like layout='button_count' class='like_button' href='like.php?like= $rows[id]' ></fb:like>
</div>
<a href='like.php?like= $rows[id]'>".stripslashes($rows[like])."</a>
</div>
";
}
?>