$heading
", $content); } if ($img2!=='') { $content = str_replace("!IMG2", "
$heading
", $content); } if ($img3!=='') { $content = str_replace("!IMG3", "
$heading
", $content); } ++$i; } //getno comments $sql="SELECT * FROM $dbtable3 where uid1=$id and status='Approved'"; $result=mysql_query($sql); $numcomments=mysql_num_rows($result); if ($numcomments<1) { $numcomments='No comments added'; } if ($numcomments>1) { $numcomments="$numcomments comments added"; } if ($numcomments==1) { $numcomments="$numcomments comment added"; } // cat cat details $sql="SELECT title,permalinks FROM $dbtable where id=$par2"; $result=mysql_query($sql); $num=mysql_num_rows($result); $i=0; while ($i < $num) { $cattitle=mysql_result($result,$i,"title"); $catlink=mysql_result($result,$i,"permalinks"); if ($catlink!=='') { $catlink="$catlink.html"; } else { $catlink="index.php?id=$par2"; } ++$i; } ?>

Last updated

Posted in |