Public paste
Loop
By: Xmoo | Date: Oct 8 2008 20:17 | Format: PHP | Expires: never | Size: 289 B | Hits: 1262

  1. <?php $obj=mysql_query("SELECT id FROM bloem_actie WHERE product >= 1 and product <= 80 ORDER BY RAND() LIMIT 1") or die(mysql_error());
  2.                 while($info= mysql_fetch_object($obj))      
  3.                 {
  4.                         $aid = $info->id;
  5.                        
  6. echo "<a href="?p=actie&a=user&id=".$aid."">".$aid."</a>";
  7.  }
  8.         ?>