Jump to content

first and last with do


ryanfilard

Recommended Posts

I currently am using this

 <?PHP do { ?>
<h1><?PHP echo $texthead; ?></h1>
<p><?PHP echo $text; ?></p>
                             <?PHP } while ($row_bodynav = mysql_fetch_assoc($bodynav)); ?>

I am not sure how to make it display something different for the first result.

 

It would usually be like this

  • Text
  • Text
  • Text
  • Text

But I would like it to do something like this.

  • Text
  • Text
  • Text
  • Text

 

Link to comment
https://forums.phpfreaks.com/topic/251074-first-and-last-with-do/
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.