Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  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>
  19.  <?
  20.  }
  21.  ?>
  22.  <a href="<? echo $adresa . "screens/" . $row["FILE"]; ?>">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement