ISO50

RSS

Featured Posts Archive

Posted by Scott

$query = "SELECT * FROM cms_featured_posts WHERE active_status='' ORDER BY dcreate DESC";
$result = mysql_query($query);
if(mysql_num_rows($result) > 0) {

$c = 0;
$r = 0;

for($i=0; $i < $row = @mysql_fetch_array($result); $i++) {

$id = $row["id"];
$image = $row["photo"];
$title = $row["post_title"];
$link = $row["post_link"];
?>



if( $c == 1){

$c = 0;
$r++;

}else{

$c++;

}

}
if($i%2) print '

‘;
}
?>


 

Comments are closed.