very slight progress here.
When I use the code (just as you gave it), it returns a blank page...totally blank (If I use Netscape 4.7 the response is that the document contains no data).
BUT
when I take out the section of your loop from "if" to "else", the following takes up the bottom of the returned page (note, I only entered one score for each kid in different columns...just to see if it ends up in the right place):
Sorry. Didn't get the data. Joe messed up the script!
MySQL error:
Query: INSERT INTO $TableName (SCHOOLID, GRADE, ROOM, MPSID, LAST, FIRST, SCORE1, SCORE2, SCORE3, SCORE4) VALUES, ('195', '3', 'P032', '9248943', 'Englemann', 'Abraham', '1', '', '', ''), ('195', '3', 'P032', '9889290', 'Herpert', 'Al', '', '2', '', ''), ('195', '3', 'P032', '9605066', 'Duck', 'Darnold', '', '', '3', ''), ('195', '3', 'P032', '8536697', 'Day', 'Dee', '', '', '', '4'), ('195', '3', 'P032', '9105145', 'Jones', 'Filene', '5', '', '', ''), ('195', '3', 'P032', '7824451', 'Caroll', 'Joan', '', '6', '', ''), ('195', '3', 'P032', '8180574', 'Chevez', 'Mike', '', '', '7', ''), ('195', '3', 'P032', '9961189', 'Jones', 'Mike', '', '', '', '8'), ('195', '3', 'P032', '8321000', 'Berma', 'Stuffy', '9', '', '', ''), ('195', '3', 'P032', '9859290', 'Jefferson', 'Theloneous', '', '10', '', ''), ('195', '3', 'P032', '9829290', 'Garganin', 'Usama', '', '', '11', ''), ('195', '3', 'P032', '8892820', 'Defleur', 'Zeus', '', '', '', '12')
OKAY
I believe I understand what you are trying to accomplish with the if/else loop....the last entry will not have a trailing or leading comma.