I suspect it's the first one you're losing. You call $sth->fetchrow_array() once to see if anything was found, and throw away the result. Call $sth->rows instead for that test.
Update: In other words: print 'NO ITEMS IN CART' unless $sth->rows;
After Compline,
Zaxo
In reply to Re: DBI forgets last record
by Zaxo
in thread DBI forgets last record
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |