in reply to DBI forgets last record
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI forgets last record
by mpeppler (Vicar) on Jan 09, 2003 at 19:23 UTC |