Rob asked:
I’m fetching results form a MySQL query using PHP. In my while loop I’m using a switch statement to execute blocks of code based on the results of a certain field type. After I have retrieved all the results for based on a certain field, I need to execute one last bit of code. Is their a way to tell if the row returned by the MySQL query is the last row matching a certain field? I figure it would be best to use an if statement to test if the result is the last row matching a certain field and execute my remaining code. Any other suggestions?