Jump to content

First and Last


unemployment

Recommended Posts

How do I tell php to add first and last class at the beginning and end of a while loop.

<?php

 

while (($e_row = mysql_fetch_assoc($e_query)) !== false)

{

?>

    <li class="companyname first last">

                      blah

                    </li>

                <?php

          }

?>

Link to comment
https://forums.phpfreaks.com/topic/227089-first-and-last/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.