First off, I am assuming that $comment is the result set of a "mysql_querry()" function? If so, how can you print $srow[name] when you don't assign it a value until 4 lines later with the "$srow=mysql_fetch_array($comment)" assignment?
Second, it appears that you are trying to create a two dimentional array called $SUBMITDATA (?) with a row corresponding to each record returned from the querry (?)
If this is the case (and even if it isn't) you can't have a WHILE loop inside an ARRAY condtructor. You should rearrange your code to something more along these lines:
$SUBMITDATA[] = "";
while($srow = mysql_fetch_array($comment)) {
print "name: $srow[name]<br>";
$SUBMITDATA[$srow['name']]['where'] = $srow['where'];
$SUBMITDATA[$srow['name']]['wzone'] = $srow['wzone'];
$SUBMITDATA[$srow['name']]['method'] = $srow['method'];
$SUBMITDATA[$srow['name']]['url'] = $srow['url'];
$SUBMITDATA[$srow['name']]['success'] = $srow['success'];
$SUBMITDATA[$srow['name']]['failure'] = $srow['failure'];
}
That should do the trick.
-- Rich Rijnders
-- Irvine, CA U.S.