Ok, I've found a more efficient way to do this, but it just keeps spitting out the same person over and over, even though there are 40 people in the db
Heres the code I came up with
$j = 1;
$result = mysql_query("SELECT * FROM newsletter ", $db);
$row = mysql_fetch_array($result);
{
echo"<tr>\n";
if ($row = mysql_fetch_array($result)) {
do {
printf("<td class=\"tx\"> $j</td>\n");
printf("<td class=\"tx\"> %s</td>\n", $row["fname"]);
printf("<td class=\"tx\"> %s</td>\n", $row["name"]);
printf("<td class=\"tx\"> %s</td>\n", $row["location"]);
printf("<td class=\"tx\"> %s</td>\n", $row["Date"]);
printf("<td class=\"tx\"> %s</td>\n", $row["email"]);
printf("<td class=\"tx\"> <input type=\"checkbox\" name=\"delbox[]\" value=\"%s\"></td>\n", $row["uid"]);
$j++;
echo"</tr>\n";
} while ($myrow = mysql_fetch_array($result));
}
}
Any ideas why its just giving me this
http://www.clanknm.com/compren/admin1
Thanks,
Aaron