Re: hm

From Sloppy Goose, 7 Years ago, written in PHP, viewed 850 times. This paste is a reply to hm from Rock3r - view diff
URL https://paste.godclan.hu/view/1NQ5tUPx Embed
Download Paste or View Raw
  1. <?php
  2.         $e = "SELECT `folder`,`comment` FROM `blackgnesposts`";
  3.         $sql = mysqli_query($conn,$e);
  4.                                                                        
  5.         $rows = array();
  6.                                                                        
  7.         while($row = mysqli_fetch_array($sql,MYSQLI_NUM))
  8.         {
  9.                 $rows[] = $row;
  10.         }
  11.         $a = mysqli_num_rows($sql);
  12.         $b = $a/2;
  13.         //print_r($rows);
  14.         $e = 1;
  15.         for($i = 0; $i < $b; $i++){
  16.                 echo $i . "<br/>";
  17.                 echo '<div>
  18.                 <a href="images/fulls/'.$rows[$i][0].'">
  19.                 <img src="images/fulls/'.$rows[$i][0].'" alt="'.$i.'" />
  20.                         <h3>'.$rows[$i][1].'</h3>
  21.                 </a>
  22.                                                                                                
  23.                 <a href="images/fulls/'.$rows[$i+1][0].'">
  24.                         <img src="images/fulls/'.$rows[$i+1][0].'" alt="" />
  25.                         <h3>'.$rows[$i+1][1].'</h3>
  26.                 </a>
  27.                 </div>';
  28.         }                                                                      
  29.                                                                        
  30. ?>

Replies to Re: hm rss

Title Name Language When
Re: hm Straton php 7 Years ago.

Reply to "Re: hm"

Here you can reply to the paste above