An example $newsstyle might have something like this in it
$newsstyle = "<DISPLAY: Subject><br><DISPLAY: Poster>";
however I cant get str_replace to replace the vars it just comes back with a 0. If anyone has any suggestions or knows the problem please reply. Thnx!
Code: Select all
$newsstyle = $news_settingsї'newsstyle'];
while ($data = mysql_fetch_array($query)) {
// Convert From Unix Time
date($datestyle,$dataї'date']);
$newsstyle = str_replace($newsstlye, "<DISPLAY: Subject>", $dataї'subject']);
$newsstyle = str_replace($newsstyle, "<DISPLAY: Date>", $dataї'date']);
$newsstyle = str_replace($newsstyle, "<DISPLAY: Poster>", $dataї'poster']);
$newsstyle = str_replace($newsstyle, "<DISPLAY: Email>", $dataї'email']);
$newsstyle = str_replace($newsstyle, "<DISPLAY: ComNum>", $dataї'comnum']);
$page_content .= $newsstyle;
}