I'm developing a recipe site and one of the fields to register the recipe, these are the tags.
I wanted to put a function equal to that of stackoverflow, an input that as I'm typing it brings the tags and, when I click, it adds in this input, to feed the table. And also wanted the possibility of inserting a new tag if it does not already exist
I have 3 tables, the one of the recipe, the one of tags and the one that links the tag with the recipe
receitas
idreceita|nome
1 |Como fazer arroz
tags
idtag|nome
2 |fim de semana
receita_tag
id|idreceita|idtag
1 | 1 | 2
I'm using PHP and Mysql