![]() |
Not displaying the first item in an array
Hello,
I wrote this code that displays a table with matching words. When I run the code all the items included in the database appear but the first one. I don't why. How can I display all the items including the first one? PHP Code:
|
This block of code appears to do nothing, I think you can delete it along with the last curly brace that goes with it.
PHP Code:
--- |
PHP Code:
If you need to keep this if branch check (invert it with a ! and remove the empty braces instead of using an else), then change the while loop into a do/while loop and it will function properly. Alternatively use mysql_data_seek to change your record. Personally I'd alter the query since you don't need to use that if/else branch there at all; simply add a check on that field for either not an empty string (if its an empty string), or not is null check if its null. |
| All times are GMT +1. The time now is 11:19 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.