I found that code. It is a costum facebook share button:

Code:
<?php
$title=urlencode('Title of Your iFrame Tab');
$url=urlencode('http://www.facebook.com/yourfanpage');
$summary=urlencode('Custom message that summarizes what your tab is about, or just a simple message to tell people to check out your tab.');
$image=urlencode('http://www.yourdomain.com/images/share-thumbnail.jpg');
?>

<a onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?>&amp;p[url]=<?php echo $url; ?>&amp;&amp;p[images][0]=<?php echo $image;?>','sharer','toolbar=0,status=0,width=548,height=325');" href="javascript: void(0)">Insert text or an image here.</a>
you can find it here: http://www.daddydesign.com/wordpress...ur-iframe-tab/

I already have a mysql connection and some data from database before that button like title and article and now I need that button to take $row['title'] instead of $title and the current URL as $url. I put $row['title'] instead of <<urlencode('Title of Your iFrame Tab')>> but I get this ���� because text is in Greek. What should I do? Thank you in advance!