Jump to content

row position


Minase

Recommended Posts

Create a counter in PHP when you retrieve and iterate through the results.  I am not sure if there is a way to do what you're asking, but that's something you could google.

 

$result = mysql_query($sql);
$i = 0;
while( $row = mysql_fetch_array($result) ) {
  echo 'Position: ' . $i;
  echo $row;

  $i++;
}//while

Link to comment
https://forums.phpfreaks.com/topic/178777-row-position/#findComment-945945
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.