is there a better way of doing this when there's like 50,000 rows of data?
"Things you can get access to, you should never memorize." -Albert Einstein
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
Firstly, there's a time limit on execution. Maybe one of the others remember what to set to a long time period.
Also, you should do an unbuffered query, which will speed things up. This way you just grab results until a null/false is returned and echo out the row. It'll be a good bit faster with 50k rows.
__________________ Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook