", "
", $dlist['article']); $description = str_replace("
", "
",$description); $description = str_replace('\"', '"',$description); $description = str_replace("\'", "'",$description); $p_description_meta = str_replace("
", " ", $description); $p_description_meta = str_replace('"', "", $p_description_meta); $p_description_meta = substr($p_description_meta, 0, 150); $likes = $dlist['likes']; $views = $dlist['views']; $tot_views = $views + 1; $qry_views = mysql_query("UPDATE `articles` SET `views`='$tot_views' WHERE `id` = '$id' AND `status` = '0' AND `show` = 'yes'"); $nxt = "SELECT `id` FROM `articles` WHERE `id` > '$id' AND `cat_id` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` > '$id' AND `additional_cat_id` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` > '$id' AND `additional_cat_id1` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` > '$id' AND `additional_cat_id2` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` > '$id' AND `additional_cat_id3` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` > '$id' AND `additional_cat_id4` = '$cid' AND `status` = '0' AND `show` = 'yes' ORDER BY `id` ASC LIMIT 0,1"; $r_nxt = mysql_query($nxt) or die('Error, Select article query failed : ' . mysql_error()); if (mysql_num_rows($r_nxt) == 0) { $nxtr = 'http://articles.wishbowl.org/'.$cat.'-articles.html'; }else { while($row_next = mysql_fetch_array($r_nxt)) { $nxtr = 'http://articles.wishbowl.org/'.$cat.'-article-'.$row_next[id].'.html'; } } $pre = "SELECT `id` FROM `articles` WHERE `id` < '$id' AND `cat_id` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` < '$id' AND `additional_cat_id` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` < '$id' AND `additional_cat_id1` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` < '$id' AND `additional_cat_id2` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` < '$id' AND `additional_cat_id3` = '$cid' AND `status` = '0' AND `show` = 'yes' OR `id` < '$id' AND `additional_cat_id4` = '$cid' AND `status` = '0' AND `show` = 'yes' ORDER BY `id` DESC LIMIT 0,1"; $r_pre = mysql_query($pre) or die('Error, query failed ' . mysql_error()); if (mysql_num_rows($r_pre) == 0) { $prer = 'http://articles.wishbowl.org/'.$cat.'-articles.html'; }else { while($row_pre = mysql_fetch_array($r_pre)) { $prer = 'http://articles.wishbowl.org/'.$cat.'-article-'.$row_pre[id].'.html'; } } ?> <?=$title;?>
HomeArticles '; $plk1 = ''; $sign = ''; $art = 'Articles'; $h_tag1 = ''; $h_tag2 = ''; }else{ $plk = ""; $plk1 = ""; $sign = ''; $art = 'Article'; $h_tag1 = '

'; $h_tag2 = '

'; } ?>

by
Add to Fav
|
Add to Fav
|
Add to Fav
|
|
|
Views :

Comments []

Leave Your Comments


[100 Words Limit]
Your Name
Email Address

Your email will not be displayed


Enter Security code