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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -