Update based on the comment: I think your best shot is to use the PHP output buffers. So you don’t have to repeat the mark up and you can implement what you want with a single while ...
Home/Question Sidebar
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask a question.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.