希望大家能帮忙!
我正在使用 PHP 驱动的链接目录程序,出于某种原因,摘要描述记录到我的 MySQL 数据库并正在生成,但 HTML 标记不会在页面上呈现。我已经包含了下面的代码,这里是http://abiautism.com/autism-resources/?page=pages&id=2任何帮助将不胜感激!
<?php if ($rowpages[IMAGENAME] != "") { ?>
<?php if ($rowpages[WIDTH] == '') $rowpages[WIDTH] = '128px'; ?>
<?PHP
$filename = "$svr_rootscript/product_images/$rowpages[IMAGENAME].jpg";
if (file_exists($filename)) $ext = jpg;
$filename = "$svr_rootscript/product_images/$rowpages[IMAGENAME].png";
if (file_exists($filename)) $ext = png;
?>
<?PHP if ($ext != '') { ?>
<img class="photo" src="product_images/<?php echo $rowpages[IMAGENAME]; ?>.<?php echo $ext; ?>" width="<?php echo $rowpages[WIDTH]; ?>">
<?PHP } ?>
<?PHP } ?>
<h1><?php echo $rowpages[HEADER]; ?></h1>
<h3><?php $description = preg_replace("/\n/","\n<BR>",$rowpages[CAPTION]); ECHO $description; ?></h3>
<?PHP if ($rowpages[SHOWADS] != '') { ?>
<div align ="center"><?php echo $rowxxx[ADS]; ?></div>
<?PHP } ?>
<b><p><a href="<?php echo $rowpages[URL]; ?>" target="_blank"><? echo $pages_vst; ?></a></p></b>
<?php $description = preg_replace("/\n/","\n<BR>",$rowpages[PAGECONTENT]); ECHO $rowpages[PAGECONTENT]; ?>