...

View Full Version : Copy Array



Salchester
07-01-2007, 08:15 PM
Howdy,

I currently have a table that contains the following fields:


Name
Species
Sex


How do I copy all information stored in the table into an array, then display each record on the page along with a check box?

Upon a record being checked, and a submit button being clicked, how do I copy all but the selected records into a second array?

Many Thanks,

rafiki
07-01-2007, 08:45 PM
$sql = "SELECT * FROM table";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {

echo "$row['name']";
echo $row['species'];
echo $row['sex'];



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum