|
|
if ($article_id <> '')
{
$objMySQL->Select("*", "articles","article_id=$article_id");
while ($dbhArtquery = $objMySQL->FetchArray())
{
if ($cat_id == 1)
{
?>

}
?>
echo $dbhArtquery["heading"];
?>
echo $dbhArtquery["content"];
?>
}
$array = array(1, 2, 3, 4,10);
$count = count($array);
for ($i = 0; $i < $count; $i++) {
if ($cat_id == $array[$i])
{
?>
}
}
$objMySQL->Select("date_format(post_date,'%d-%M-%Y') as post_date, post_name, post_email, post_subject,post_details", "comments","article_id = '$article_id' and status = 'A'","","comment_id ASC");
while ($queryResults = $objMySQL->FetchArray())
{
?>
Comments |
|
=nl2br($queryResults["post_details"]);?> |
}
}
else
{
?>
|
$maxResult = 10; // number of records to display.
$strSql = "select art_cat_id,article_id,date_format(article_date,'%d-%M-%Y') as artDate,heading,heading_desc,language from articles where art_cat_id=$cat_id order by article_date DESC";
$query = mysql_query($strSql) or die(sql_error());
$num_rows = mysql_num_rows($query);
if($num_rows) {
## to calculate total pages, process query with limit
include("pageWiseTop.php");
## function to display next and previuos pages
nextPrevious($page,$totalPages,$backpage);
while($dbhValue = mysql_fetch_array($result)) {
echo ' | ';
}
?>
}
?>
|
 |
|
|