Hi,
If it is writing 1200 lines a failing, have your tried running a similar query along through PHPmyadmin or similar to see if any of the fields you are pulling are empty.
Do you do any outputting in the page?
try putting in some checking
i.e.
PHP Code:
while($line = mysql_fetch_array($result, MYSQL_ASSOC)){
if(!empty($line))
{
$list[] = $line;
}
}
can you also show a dummy of what $result it?
What type of field/size are you pulling into the array?