Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $resultfora = mysql_query("SELECT * FROM hoofdfora");
  3.  
  4. while($fora = mysql_fetch_array($resultfora))
  5. {
  6. echo "<tr>";
  7. echo "<th colspan=\"2\">";
  8. echo "$fora['name']";
  9. echo "</th><th width=\"30%\">Laatste bericht</th>";
  10. echo "</tr>";
  11.  
  12.     $resultalgemeen = mysql_query("SELECT * FROM algemeenfora WHERE hoofd = '".$fora['Id']."'");
  13.     while($row = mysql_fetch_array($resultalgemeen))
  14.     {
  15.         echo "<tr><td class=\"table_image\" width=\"30px\"><img src=\"stats.gif\"></td><td class=\"table_category\">";
  16.         echo "<a href=\"#\">".$row['name']."</a>";
  17.         echo "<p>".$row['description']."</p>";
  18.         echo "</td><td class=\"table_last\"><a href=\"#\"><p style=\"float: left;\">Welkom allemaal!</p></a><br><div style=\"float: left;\">Door: Jan</div><div style=\"float: right;\">Vandaag 19:18</div></td>";
  19.         echo "</tr>";
  20.            
  21.     }
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement