$rows = 0;
echo "".$HTTP_SESSION_VARS["sessionOrgName"].""; while(mysql_fetch_row($doctors)){ $docFirstName = mysql_result($doctors,$rows,"FirstName"); $docLastName = mysql_result($doctors,$rows,"LastName"); echo "Dr. ".$docFirstName." ".$docLastName. ""; $rows++; } print " "; $row = 0; while (mysql_fetch_row($result)){ $content = mysql_result($result,$row,"EBody"); $title = mysql_result($result,$row,"ETitle"); $eFileName = mysql_result($result,$row,"EFileName"); $directory = str_replace('.xhtml', '', $eFileName); $directory = str_replace('.html', '', $directory); $catName = strtolower(mysql_result($result,$row,"catagoryName")); $catID = mysql_result($result, $row, "catagoryID"); $temp = base64_encode($eFileName); $output = ereg_replace(chr(13)," ",$content); echo $catName . " " . $directory; function pic2($message){ return ""; } function pic3($message){ return ""; } function doc($filename, $catID){ return ""; } // replace image links with call to popup $output = eregi_replace("",pic2('\\1'), $content); //$output = eregi_replace("",pic2('\\1'), $output); // replace related document links with call to fuseaction for topic detail - (query for elementID) // $output = eregi_replace("", doc('\\1', $catID), $output); // replace in-line image tags with hidden path // works on Development machine, not on Rackspace // $output = eregi_replace("",' ', $output); // handle in-line image tags that have more than 1 subdirectory below the area ie. $output = eregi_replace("",pic3('\\1'), $output); echo $output; $row++; } mysql_free_result($result); mysql_free_result($doctors); ?> |