0
我有一個Facebook的問題,如iframe ..我想能夠喜歡每個ID。問題是,當我把這段代碼放在我的網站上,並且像一個帖子那樣點擊,所有的帖子都很喜歡。Facebook的iframe像問題
$sql = "SELECT * FROM $tbl_name ORDER BY id DESC LIMIT $start, $limit";
if(isset($_GET['id']))
{
$id=intval($_GET['id']);
$sql = "SELECT * FROM $tbl_name WHERE id=$id";
}
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo "<center><a href ='single_joke.php?id=".$row['id']."'>" .$row['Title']."</a></center>";
echo "<br>";
echo nl2br($row["VicText"]);
?>
<iframe src="https://www.facebook.com/plugins/like.php?href=http://www.keevik.com/vicevi.php?id=<?php echo $row['id']; ?>"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
<?php
echo "<hr>";
}