Hodges |
|
||||
---|---|---|---|---|---|
Hi there, I'm working on a plugin and I've run into something bizarre I can't figure out. I've got the following exmaple DB table:
And I've got this simple script to output the column 'test_title' in ascending order.
If I run the above SQL statement in phpMyAdmin I get:
If I run the script as part of my plugin I get:
The first row is always missing!! What silly mistake am I making? |
Twiebie |
|
||
---|---|---|---|
On line 2 you've put the first row in $row and then you started looping through the result. Use fetchAll() like so:
|
Hodges |
|
---|---|
Thank you! I knew it had to be a simple mistake. |