Obviously this is a problem that all friends who use MySQL will encounter.
Recall the original MySQL GUI tool that was mentioned in configuring the environment, yes, that's it, you can find it in http://www.mysql.com. Because Sunec is only a program enthusiast, far from reaching the programmer level, so the help of some tools is very necessary ~ I believe some friends also like me ~
Create a table with the GUI tools, establish a REF field, set ref as the primary key, define the type int, and tick on the Auto inc option. Well, the work on the MySQL side is over.
Next to PHP, using the Insert command described in the previous topic to add data to this table, note that you do not have to add the value of ref, because before the Auto Inc option ticked, then each add a record, ref will be automatically generated, and in order to increment, so, Is it possible to fulfill your needs?
In addition, starting from this topic, I put some technology into the PHP technical area, please pay attention!
The above describes the PHP MySQL space php mysql index problem, including the PHP MySQL space content, I hope to be interested in PHP tutorial friends helpful.