It's probably just a typo or reference to a variable that might not exist. In addition to doing die() you can also echo your query out to see what the query is querying.
Before your 'while' statement you could write.
Then load your file in a browser to see what the string is querying the database with.
You could also take the query and put it into phpMyAdmin to see why the query isn't bringing any results. Then, once you get it corrected, put it back into your PHP script.
__________________
Please login or register to view this content. Registration is FREE - Computer Repair over the internet!
|