AcidReignX
Programmer
I'm having a small problem with mysql - there is a particular ID field that I do not want to have increase automatically, but I would like to insert it to an unused location without having to do it manually.
for example, if the following fields are present:
| ID | Name | Miscellaneous |
| 00 | John | Other
| 02 | Fred | Other
| 08 | Jack | Other
How can I have a form using the post method that will automatically add a name and miscellaneous field to the first unused ID? (or any ID that isn't used... even if it is the next higher, that's still decent I guess - I just can't set the field to use auto_increment for other reasons)
The form would be something basic:
Name: <input type="text" name="name">
Other: <input type="other" name="misc">
It's the ID that I'm confused on...
for example, if the following fields are present:
| ID | Name | Miscellaneous |
| 00 | John | Other
| 02 | Fred | Other
| 08 | Jack | Other
How can I have a form using the post method that will automatically add a name and miscellaneous field to the first unused ID? (or any ID that isn't used... even if it is the next higher, that's still decent I guess - I just can't set the field to use auto_increment for other reasons)
The form would be something basic:
Name: <input type="text" name="name">
Other: <input type="other" name="misc">
It's the ID that I'm confused on...