[PHP-DB] How to print last row in an array using WHILE?

2001-03-26 Thread Bob Stone
Dear PHP Helpers, I have an array created by an mysql select statement. I have the code to display the "rows" from the select statement. Everything works fine except that only n-1 rows from the array will display. For example if the array contains four rows only three will display. If the

Re: [PHP-DB] How to print last row in an array using WHILE?

2001-03-26 Thread Felix Kronlage
On Mon, Mar 26, 2001 at 10:35:37PM -0800, Bob Stone wrote: Everything works fine except that only n-1 rows from the array will display. no wonder (explained below at the code) This fetches the first row $myrow = mysql_fetch_array($result); ...and then the rest in the while-loop.