//// INCLUIR EM TODAS AS PÁGINAS ////
include ("ligacao_bd.php");
?>
include_once '../languageSelector.php';?>
include ("comum.php");?>
include ("../header_level1.php"); ?>
include ("menu_seccao.php"); ?>
/>
$result = mysql_query("SELECT * FROM registo_tipo ORDER BY `ordem` DESC",$connection);
while($row = mysql_fetch_array($result)){
extract($row);
?>
$result2 = mysql_query("SELECT * FROM registo WHERE id_tipo='".$id_tipo."' AND privado = '0'",$connection);
while($row2 = mysql_fetch_array($result2)){
extract($row2);
?>
}
?>
}
?>
if (isset($_GET["id"])){
$result = mysql_query("SELECT * FROM registo WHERE id_video='".$_GET["id"]."' ",$connection);
$row = mysql_fetch_array($result);
extract($row);
}
else{
$result = mysql_query("SELECT * FROM registo WHERE privado = '0'",$connection);
$num = mysql_num_rows($result);
$registo = rand(1, $num);
for($i = 1; $i < $registo; $i++){
$row = mysql_fetch_array($result);
extract($row);
}
}
?>