View difference between Paste ID: BC1HvgXg and 1nVcTjf7
SHOW: | | - or go back to the newest paste.
1
<h3>Galéria</h3>
2
<?  
3
  $server = "";
4
  $user = "";
5
  $pass = "";
6
  $databaze = "";
7
8
9
  $conn = @mysql_connect($server, $user, $pass);
10
  if (!@mysql_select_db($databaze, $conn)):
11
  echo "<big><pre><b>Omlouváme se, probíhá údržba serveru....<br>&nbsp;<br>We apologize - servicing is in process...</b></pre></big>";
12
  exit;
13
  endif;
14
15
  $query = "select * from images";
16
  $result = mysql_query($query) or die("SQL dotaz nešlo provést");
17
  while ($row=mysql_fetch_array($result)){
18-
 ?><a href="<? echo $adresa . "?i=" . $row["FILE"]; ?>"><div style="position: relative; width: 130px; height: 130px; float: left; margin-left: 18px;display: vertical-align: middle; "><img src="screens/<? echo $row["FILE"]; ?>" style="width: 130px; height: 130px;"></div></a>
18+
 ?><a href="screens/<? echo $row["FILE"]; ?>"><div style="position: relative; width: 130px; height: 130px; float: left; margin-left: 18px;display: vertical-align: middle; "><img src="screens/<? echo $row["FILE"]; ?>" style="width: 130px; height: 130px;"></div></a>
19
 <?
20
 }
21
 ?>
22
 <a href="<? echo $adresa . "screens/" . $row["FILE"]; ?>">