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

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

2003-01-16 Thread Davíð Örn Jóhannsson
-Original Message- From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 13:59 To: '1LT John W. Holmes' 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

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

2003-01-16 Thread 1LT John W. Holmes
IL PROTECTED]> Sent: Thursday, January 16, 2003 8:39 AM Subject: [PHP] Problem with a for loop... I have al for loop that looks something like this: $checkCurrName = "SELECT imgName FROM $db_img ORDER BY imgName DESC"; $resultCurrName = mysql_query($checkCurrName, $db); for ($i = 0;

[PHP] Problem with a for loop...

2003-01-16 Thread Davíð Örn Jóhannsson
I have al for loop that looks something like this: $checkCurrName = "SELECT imgName FROM $db_img ORDER BY imgName DESC"; $resultCurrName = mysql_query($checkCurrName, $db); for ($i = 0; $i < $n; $i++){ list($currName) = mysql_fetch_row($resultCurrName); $newName = $cu