";
echo"
Galerie de Photos
";
function eacheone($albumid){
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php");
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php");
$query=("SELECT * FROM evenementsmedia where albumid='".$albumid."' AND status='1' order by ordre ASC LIMIT 1");
$result=mysqli_query($conn,$query) or die(mysqli_error($conn));
$num_rows=mysqli_num_rows($result);
if($num_rows==true){
$data=mysqli_fetch_object($result);
$id=$data->id;
$titre=$data->titre;
$retour ="
";
}else{
$retour ="
";
}
return $retour;
}
function albums(){
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php");
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php");
$query=("SELECT DISTINCT u.albumid,e.datedeb, e.titre FROM evenementsmedia u, evenements e WHERE u.albumid=e.id ORDER BY datedeb DESC");
$result=mysqli_query($conn,$query) or die(mysqli_error($conn));
$num_rows=mysqli_num_rows($result);
if($num_rows==true){
while ($row = mysqli_fetch_array($result)) {
echo"
";
}
}
}
//echo"
Nos événements
";
//albums();
function eacheoneother($albumid){
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php");
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php");
$query=("SELECT * FROM remedia where albumid='".$albumid."' AND status='1' order by ordre ASC LIMIT 1");
$result=mysqli_query($conn,$query) or die(mysqli_error($conn));
$num_rows=mysqli_num_rows($result);
if($num_rows==true){
$data=mysqli_fetch_object($result);
$id=$data->id;
$titre=$data->titre;
$retour ="
";
}else{
$retour ="
";
}
return $retour;
}
function autresalbums(){
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php");
include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php");
$query=("SELECT * FROM galerie WHERE status='1' ORDER BY datetime DESC");
$result=mysqli_query($conn,$query) or die(mysqli_error($conn));
$num_rows=mysqli_num_rows($result);
if($num_rows==true){
while ($row = mysqli_fetch_array($result)) {
echo"
";
}
}
}
echo"
";
echo"
Autres albums
";
autresalbums();
echo"
";
include($_SERVER['DOCUMENT_ROOT']."/reveber/db_girtin.php");
echo"