php - Facebook Like button for a specific id -
from homepage click on image has id , directed page shows more details id.
i want have facebook button on page contain information specific id don't know type in data-href
<div class="fb-like" data-href="http://www.test.com/php/test.php?id=" data-send="true" data-width="150" data-show-faces="false"></div>
specify static or coming database ?
for database, pass php variable in url:
echo "<div class='fb-like' data-href='http://www.test.com/php/test.php?id='".$id."data-send='true' data-width='150' data-show-faces='false'></div>";
Comments
Post a Comment