Фотогалерея    
"; $sql="SELECT * FROM $table order by por"; $result = mysql_query($sql, $conn); while ($row=mysql_fetch_array($result)) { $title1=$row[1]." ".$row[3]; echo "
"; $sql1="SELECT * FROM fird where idfirdfird=$row[0]"; $result1 = mysql_query($sql1, $conn); $i=0; while ($row1=mysql_fetch_array($result1)) { $i++; $mas[$i]=$row1[0]; } $m=rand(1,$i); $sql2="SELECT * FROM four where idfourfour=$mas[$m]"; $result2 = mysql_query($sql2, $conn); $i=0; while ($row2=mysql_fetch_array($result2)) { $i++; $mas1[$i]=$row2[1]; } $m=rand(1,$i); echo "
$row[1]
($row[2] фото)
$row[3]
"; } } if($table=='fird') { $sql="SELECT * FROM first where idfirst=$num "; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $tema=$row[1]; echo "
"; $sql="SELECT * FROM $table where id$table$table=$num order by por"; $result = mysql_query($sql, $conn); while ($row=mysql_fetch_array($result)) { $title1=$row[1]." ".$row[4]; echo "
"; $sql1="SELECT * FROM four where idfourfour=$row[0]"; $result1 = mysql_query($sql1, $conn); $i=0; while ($row1=mysql_fetch_array($result1)) { $i++; $mas1[$i]=$row1[1]; } $m=rand(1,$i); echo "
$row[1]
($row[3] фото)
$row[4]
"; } } if($table=='four') { $sql="SELECT * FROM first where idfirst=$num"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $tema=$row[1]; $sql="SELECT * FROM fird where idfird=$num2"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $podtema=$row[1]; $sql="SELECT * FROM $table where id$table$table=$num2 order by por"; $result = mysql_query($sql, $conn); echo "
"; while ($row=mysql_fetch_array($result)) { $title1=$row[3]; $sql1="SELECT * FROM five where idfivefive=$row[0]"; $result1 = mysql_query($sql1, $conn); $row1=mysql_fetch_array($result1); $kav='"'; echo "
.$kav.
$title1
"; } } if($table=='five') { $sql="SELECT * FROM first where idfirst=$num"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $tema=$row[1]; $sql="SELECT * FROM fird where idfird=$num2"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $podtema=$row[1]; $table="four"; $sql="SELECT * FROM four where id$table$table=$num2"; $result = mysql_query($sql, $conn); $i=0; $j=0; $mass[0]=""; $mass[1]=""; $mass[2]=""; $mass2[0]=""; $mass2[1]=""; $mass2[2]=""; while ($row=mysql_fetch_array($result)) { $i++; if ($j!=1) { $mass[0]=$mass[1]; $mass[1]=$mass[2]; $mass[2]=$row[1]; $mass2[0]=$mass2[1]; $mass2[1]=$mass2[2]; $mass2[2]=$row[0]; $j--; } if ($num3==$row[0]) { $j=2;} } if ($j==2) { $mass[0]=$mass[1]; $mass[1]=$mass[2]; $mass[2]=""; $mass2[0]=$mass2[1]; $mass2[1]=$mass2[2];} $kav='"'; $sql="SELECT * FROM $table where id$table=$num3"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); echo "
"; echo "
"; $lev_kav=""; if ($mass[0]!="") { $lev_kav="..."; $sql="SELECT * FROM four where fourfour='$mass[0]'"; $result = mysql_query($sql, $conn); $r=mysql_fetch_array($result); echo"$r[3]"; } echo "
$title
"; $prav_kav=""; if ($mass[2]!="") { $prav_kav="..."; $sql="SELECT * FROM four where fourfour='$mass[2]'"; $result = mysql_query($sql, $conn); $r=mysql_fetch_array($result); echo"$r[3]"; } $sql="SELECT * FROM six where idsixsix=$num3"; $result = mysql_query($sql, $conn); $row5=mysql_fetch_array($result); if ($row5[3]=='') $col=1; else $col=$row5[3]+1; $fill="../galereya/images/$sred1$row[1]"; $size=getimagesize($fill); $sql="Update six set col1=$col where idsixsix=$num3"; mysql_query($sql, $conn); $ob=filesize($fill); $ob=round(($ob/1000)); if ($clas=='sred') $opisss=$row5[5]; else $opisss=""; echo "
$title_min
$title_max  
Подпись: $row[3]
Описание: $rowww[$opisopis]
Дата: $row5[2]
Просмотров: $col
Размеры фото: $size[0]x$size[1]
Размеры файла: $ob kb
Автор: administrator
Комментарии:  
Дополнительная информация: $lev_kav$opisss$prav_kav
"; $table="five"; } echo "
"; ?>
Пансионат Феодосии Украина-1, отдых в Феодосии, золотой пляж Феодосии