Hello,
I have a very quick question. Say I have a database like so:
id | name
1 | John
2 | Mark
3 | Joe
4 | Matt
5 | Ruth
101 | Matt
102| Jeff
103| Mark
104| Lydia
105| Jeff
201| Pike
202 | Niall
204| Webb
205 | Truth
When it comes to inseting a record into the database:
How can I force my query to insert a row in the database at the next free number between 106 and 200 for instance as normally it would just check the new record on mysql after 205 as 206?PHP Code:$result = mysql_query("Insert into tbl (name)
values ('$name')") or die(mysql_error());
Thanks





Bookmarks