View Full Version : Facebook Share Button and Greek

04-12-2012, 02:27 AM
I found that code. It is a costum facebook share button:

$title=urlencode('Title of Your iFrame Tab');
$summary=urlencode('Custom message that summarizes what your tab is about, or just a simple message to tell people to check out your tab.');

<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/how-to-create-a-custom-facebook-share-button-for-your-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!