Public paste
y
By: y | Date: Oct 8 2008 21:20 | Format: PHP | Expires: never | Size: 455 B | Hits: 1193

  1. <?php
  2. $obj=mysql_query("SELECT * FROM bloem_actie") or die(mysql_error());
  3. $product_array = array();
  4.         while($info = mysql_fetch_array($obj))      
  5.         {
  6.            $product_array[] = $aid = $info->id;            
  7.         }
  8.  
  9. for($i=0;sizeof($product_array) > $i;$i++) {
  10.         $aid = $product_array[$i];
  11.         echo "<center><h2>The winning ID for product ".($i+1)." is <a href="?p=actie&a=user&id=".$aid."">".$aid."</a></h2></center>";
  12. }
  13. ?>