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 = $currName++;
print($newName);
//insert $newName into db
}
The problem is that I get the first printout right (the current value in
the database + 1) but all after that equal the first one, it looks
like i’m not getting the newest value from the database after the first
loop.
Any Ideas about this
Thanks, David