Hi there,
I am using this code to output news articles from a database onto my website.
[code]<?php
@require_once “db.php”;
$qry = @mysql_query(“SELECT * FROM story ORDER BY whn DESC LIMIT 20”);
while ($row = @mysql_fetch_array($qry)) {
foreach (Array(‘tit’, ‘dsc’, ‘url’) as $k) {
$row[$k] = @base64_decode($row[$k]);
}
print <<<EOF
$row[tit]
EOF;
}
?>[/code]
However, all the apostrophes come out as ?? instead of '. I considered str_replace but don’t really know how to implement it in this case.
I’d appreciate any help.
Thanks a lot,
Tariq
Admin Edit: Changed the QUOTE tag to CODE