RE: [PHP] Problem with a for loop...

2003-01-16 Thread Matt Schroebel
> -Original Message- > From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] > Sent: 16. janúar 2003 13:59 > Subject: RE: [PHP] Problem with a for loop... > > I only want the last inserted row in the mysql database, and each time > the script goes trough the loop i

Re: [PHP] Problem with a for loop...

2003-01-16 Thread 1LT John W. Holmes
Are you sure $n is being set somewhere? Why not do it like this: while($row = mysql_fetch_row($resultCurrName)) { print $row[0]+1; //do rest of whatever... } ---John Holmes... - Original Message - From: "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursd