Hi,
I'm using PHP-Nuke 5.0 beta and am trying to write a function to replace the code "<!--acrobat-->" with some HTML, stored in the mySQL database.
The function I have so far is:
function replace_acrobat($content) {
$result = mysql_query("select html from includes where inclid = '0'");
$html = mysql_fetch_array($result);
$content = str_replace("<!--acrobat-->", $html, $content);
return($content);
}
However, when it runs, the function returns "Array", not the contents of the HTML field in the database.
My apologies for the newbie-ness of this question, and my thanks in advance for any help!
--Chris Johnson
ceejayoz@one.net