I would like to know how to insert the following combination, via PHP or mysql:
I have a field called YEAR that needs to receive the current YEAR 2017 format via php or mysql.
I have a code field that will need to concatenate the protocol number + year, but this protocol would be the ID field of the table that is automatically generated with AI.
How would I get this ID, even if I had not generated any fields yet, since it is auto_increment.
In short, when making a new registration, it would take the ID + year and put it inside the CODE field.