Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying do display data stored in mysql.. i get the data but because it  
is(text) in greek it comes out like ?????????
i have changed the collation to greek_bin
both in the table as in the whole database...
I even tryied with the HTML tags of charset but even though i get these  
to define: i got a table named fysc and two columns named "per" and "askisi"  
as you see, i am searching in askisi to get results from per....

my code:

$sql = 'SELECT per FROM fysc WHERE askisi="fysc2" ';
//$what = mysql_query($sql);
$results = mysql_query($sql);
//$what = mysql_query($sql); ?>

while ($row = mysql_fetch_array($results)) {
echo $per;
echo "<br>";


Re: No GREEK???

DID IT!!!! YEAH!!!!

just had to add
mysql_query("SET NAMES greek")
i dont exactly know what this does but it worked!
if anyone has the time to explain....
Quoted text here. Click to load it

Re: No GREEK??? wrote:
Quoted text here. Click to load it

You can find an explanation in this tutorial:

Re: No GREEK??? wrote:
Quoted text here. Click to load it

If you want an explanation, you might try a MySQL newsgroup - such as  

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline