include "../menu.php"; ?>
|
|
|
|
|
|
|
if ($id != "") {
$sql = mysql_query("SELECT * FROM festaspopulares WHERE id_festaspopulares=$id");
if (@mysql_result($sql,0,foto) != "")
?>
|
echo mysql_result($sql,0,titulo); ?> |
|
echo " "; ?>
echo nl2br(mysql_result($sql,0,texto)); ?> |
|
OUTRAS FESTAS POPULARES
$sql = mysql_query("SELECT * FROM festaspopulares ORDER BY data DESC");
while ($coluna = mysql_fetch_array($sql)) {
if ($coluna[id_festaspopulares] != $id) {
echo " $coluna[titulo] ";
}
}
} else {
$sql = mysql_query("SELECT * FROM festaspopulares ORDER BY data DESC");
while ($coluna = mysql_fetch_array($sql)) {
echo " - $coluna[titulo]: $coluna[resumo]
";
$achou = 1;
} if (!$achou) { echo "Não existem festaspopulares no sistema"; } }
?>
|
|
|
|
|
|
|
include "../../menu_capa.php"; ?>
|