macromedia.dreamweaver.appdev
[Top] [All Lists]

Recordset to array

Subject: Recordset to array
From: "mac-in-the-mountains"
Date: Thu, 28 Aug 2008 15:10:38 +0000 UTC
Newsgroups: macromedia.dreamweaver.appdev

Hi Folks,

 I'm trying to turn a recordset into an array so I can filter the results on 
the page.

 This is what I have at present but I only seem to end up with one line in the 
array when there should be hundreds.

 Can Anyone see what I'm doing wrong?

 Dave

 <?php $howmanydates = $totalRows_rs_dates; ?>
 <?php
 $i=0;
                        
 do

 {$coursedates=array( array($row_rs_dates['code'], $row_rs_dates['start_date'], 
$row_rs_dates['finish-date'] )); 
                                                
 $i++;
 } 
                                                                        

 while ($i<$howmanydates);
 ?>

 <?php 
   print_r ($coursedates);?>


<Prev in Thread] Current Thread [Next in Thread>