Latest News
$sql = "SELECT count(id_news) as cuantos from cycle_news where type ='N'"; //echo $sql.""; $db = new DB(); $db->db_connect(); $db->query($sql); $db_data=$db->fetch_data(); $cant_registros = $db_data['cuantos']; $sql = "SELECT * from cycle_news where type ='N' ORDER BY insert_date DESC limit 0,4 "; //echo $sql."
"; $db = new DB(); $db->db_connect(); $db->query($sql); while($db_data=$db->fetch_data()){ ?> } //while ?> if ($cant_registros > 1){ ?>