> -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
-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
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;
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
4 matches
Mail list logo