Here's the create table snip:
CREATE TABLE cat (
child_id int(4) NOT NULL auto_increment,
parent_id int(4) NOT NULL default '0',
label text NOT NULL,
copy text NOT NULL,
PRIMARY KEY (child_id),
UNIQUE KEY child_id (child_id)
) TYPE=MyISAM AUTO_INCREMENT=1004 ;
And the add category snip:
$sql = "INSERT INTO cat (parent_id,label,copy) VALUES ('$parent_id','$label','$copy')";
$result = mysql_query($sql);
The first field of the table is child_id, and i've not included that in the above, might that be it?
It's not a big problem, but I'd like to increase the values of the static pages (that have no parent category associated them), from 999 to something larger - in case the current number of categories (270) gets as high as 999, which is a remote possibility, but I don't want to do that if the child_id auto increment will jump to the higher number - there's no real reason why, it just looks messy and I want to understand why its happened - and why I can't re-create it.
I've been trying to re-create the problem on my local development server, which is perhaps why I can't recreate it - I'm thinking that maybe it's a problem with my code, and the live server (different PHP/MYSQL install etc.) is handling the code differently, hence the weird change that i've not been able to replicate offline?