Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STYLE DOSYASI
- .images li{
- position: relative;
- display: inline-block;
- float:left;
- list-style:none;
- margin-right:10px;
- }
- PHP KISMI
- <?php
- $srg = mysql_query("SELECT * FROM resimler ORDER BY id DESC");
- while($ac=mysql_fetch_array($srg)){
- echo "<ul class='images'>";
- $kim=$ac['kim'];
- $srg2 = mysql_query("SELECT * FROM uyeler WHERE id='$kim' ORDER BY id DESC");
- $ac2=mysql_fetch_array($srg2);
- echo " <img src='".$ac2['presmi']."' width='50' height='50' >"."@"."".$ac2['kullad'];
- $kim=$ac['kim'];
- echo "<li><img src='"."resimler/".$ac['link']."' width='150' height='150'></li>";
- echo "</ul>";
- $srg2 = mysql_query("SELECT * FROM uyeler WHERE id='$kim'");
- $ac2=mysql_fetch_array($srg2);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement