Just wondering does any one know why this does not work. It replaces any thing (such as the i) in the ereg replace which i dont want it to do i only want it to replace the full thing if inputed. Please help.
$content_replace = $page_row["main_content"];
$content_replace = ereg_replace("\n","<br>",$content_replace);
$content_replace = ereg_replace("[img]","<img src=\"",$content_replace);
$content_replace = ereg_replace("[/img]","\">",$content_replace);
PS. Sorry if the explanation is not that clear.