esolm has asked for the wisdom of the Perl Monks concerning the following question:
This works great until $sessionid = 10, then $sessionid++; does not increment to 11. Later in the code I insert $sessionid into a database and after 10 I get a PK violation. How do I make $sessionid increment larger than 10.$sessionid = $logquery->fetchrow_array; $sessionid = '0' if not defined $sessionid; $sessionid++;
2001-05-14 Edit by Corion : Changed the title to be more descriptive. See SQL unique IDs and Sessions (was: yesterday I posted this and you all aksed for more info so ........) for the refined question with more data and more answers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: an easy one
by tye (Sage) on May 10, 2001 at 02:33 UTC | |
|
Re: an easy one
by arturo (Vicar) on May 10, 2001 at 01:40 UTC | |
|
Re: an easy one
by no_slogan (Deacon) on May 10, 2001 at 01:43 UTC |