Forum Moderators: coopster
Mysql Table
CREATE TABLE IF NOT EXISTS `news_category` (
`catid` varchar(11) NOT NULL,
`category` text character set greek NOT NULL,
PRIMARY KEY (`catid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `news_category`
--
INSERT INTO `news_category` (`catid`, `category`) VALUES
('1', 'ΕΙΔΗΣΕΙΣ'),
('2', 'ΟΙΚΟΝΟΜΙΑ');
PHP CODE
<?php
$sql = "select * from news_category order by catid";
$result = mysql_query($sql);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("%s <br>", $myrow["category"]);
} while ($myrow = mysql_fetch_array($result));
}
?>
the problem is, when i want to display the category title. it display just (?) signs.
i will be so thanksfull if someone can help me in this matter