hm

From Rock3r, 7 Years ago, written in PHP, viewed 765 times. This paste will self destruct in 1 Second.
URL https://paste.godclan.hu/view/BkzA5niz 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 hm rss

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

Reply to "hm"

Here you can reply to the paste above