ive found a question related to my problem and im using it for some parts of my website. but right now i can't use that
How to make MySQL table primary key auto increment with some prefix
in my website i need to create a tracking number. the tracking number must be seen by the user from the html input. so if i use the same idea with the link above it will not work. because it will only trigger the autonumber when an insert is executed i want to create something like this string + numbers(00001) + year str-00001-15