Here's the code snippet:
Code: Select all
// Until there are no rows in the result set, fetch a row into
// the $row array and ...
while ($row = @ mysql_fetch_row($result))
{
// ... start a TABLE row ...
print "\n<tr>";
// ... and print out each of the attributes in that row as a
// separate TD (Table Data).
print "\n\t<td width='20'> {$row["part_id"]} </td>";
print "\n\t<td width='40'> {$row["household_rep"]} </td>";
print "\n\t<td width='50'> {$row["street_address"]} </td>";
print "\n\t<td width='20'> {$row["city"]} </td>";
print "\n\t<td width='10'> {$row["state"]} </td>";
print "\n\t<td width='20'> {$row["zipcode"]} </td>";
print "\n\t<td width='30'> {$row["phone"]} </td>";
print "\n\t<td width='30'> {$row["email"]} </td>";
// Finish the row
print "\n</tr>";
}
// Then, finish the table
print "\n</table>\n";
Notice: Undefined index: part_id in C:\wamp\www\report.php on line 29
Notice: Undefined index: household_rep in C:\wamp\www\report.php on line 30
Notice: Undefined index: street_address in C:\wamp\www\report.php on line 31
Notice: Undefined index: city in C:\wamp\www\report.php on line 32
Notice: Undefined index: state in C:\wamp\www\report.php on line 33
...etc
These are the lines where the specific attribute values are printed.
Any ideas what the problem might be?