01.02.2012, 09:52
To select only specific rows, just replace the star (*) with the column names.
The thread code itself seems pretty solid, although it may be more useful to use sscanf. Not sure if it's any faster though. I don't know how or if you can get rid of the loop, because I don't know what the underlying idea is.
Edit: Damn, I'm slow.
PHP код:
SELECT `test1`,`test2`,`test3` FROM `table`
Edit: Damn, I'm slow.