Cursos
$sql3 = "select * from menusub order by codigo";
$cad3 = mysql_query($sql3,$connection);
while( $array = mysql_fetch_array($cad3)){
$tab1 = "$array[codigo]";
$tab2 = "$array[titulo]";
?>
-
}
$sql3 = "select * from menu where tipo = 1 and texto != '' order by codigo";
$cad3 = mysql_query($sql3,$connection);
while( $array = mysql_fetch_array($cad3)){
$tab1 = "$array[codigo]";
$tab2 = "$array[nome]";
$tab3 = "$array[texto]";
if($tab3){
?>
-
} } ?>
Novidades
$sql3 = "select * from noticias where categoria = 'noticia' order by data desc limit 0,3";
$cad3 = mysql_query($sql3,$connection);
while ( $array = mysql_fetch_array($cad3) ) {
$tab1 = "$array[id_noticia]";
$tab2 = "$array[categoria]";
$tab3 = "$array[foto]";
$tab4 = "$array[pasta]";
$tab5 = "$array[titulo]";
$tab6 = "$array[conteudo]";
$tab7 = "$array[data]";
$tab8 = "$array[publicar]";
$mesok = mes($tab7);
$diaok = dia($tab7);
$tab7 = $diaok." ".mesmuda($mesok);
$numero = $numero + 1;
if($numero == 1)
$classe= "grid-2 views-row first alpha odd";
if($numero == 2)
$classe= "grid-2 views-row even";
if($numero == 3)
$classe= "grid-2 views-row odd";
if($numero == 4)
$classe= "grid-2 views-row last omega even";
$filename = "noticias/$tab3";
?>
} ?>
$sql_nota = "select * from bannersxml where local = 20 and status = '0'";
$cad_nota = mysql_query($sql_nota,$connection);
while($array = mysql_fetch_array($cad_nota))
{
$tab4 = "$array[link]";
$tab10 = "$array[observacoes]";
$tab11 = "$array[banners]";
?>
-
} ?>
$sql_nota = "select * from textos where id_pagina = 42";
$cad_nota = mysql_query($sql_nota,$connection);
$array = mysql_fetch_array($cad_nota);
$tab2 = "$array[titulo]";
$tab3 = "$array[texto]";
?>
include "include_rodape.php";?>