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