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.
In reply to SQL Session ID troubles (was: an easy one) by esolm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |