SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function custom_module($name)
  2. {
  3.     $query = mysql_query("SELECT * FROM modules WHERE visible = '1'");
  4.     if(mysql_num_rows($query4) > 0)
  5.     {
  6.         while($row =mysql_fetch_array($query4))
  7.         {
  8.             if(empty($row['title']))
  9.             {
  10.                 $row['title'] = "CustomModule";
  11.             }
  12.            
  13.             echo '<div class="module">
  14.                     <div class="title">:: '.$row['title'].' ::</div>
  15.                     <div class="content t'.$row['align'].'">'.$row['content'].'</div>
  16.                     <div class="bottom"></div>
  17.                 </div>
  18.     '; 
  19.            
  20.         }
  21.     }
  22. }
RAW Paste Data
Top