Hi all,
I'm trying to create a web form using Database.
The actually webform should to add a new model in the model's database.
Before to add the new model, I should to check if the model doesnt already exist in the database.
The difficulty is :
We can have 2 model's name from different brand.
Exemple :
id_model | model | fk_Brand
1 | example1 | 1
2 | example1 | 2
So I can't just check the model, I need to check the model AND the brand.
In my example, I need to check if id_marque = fk_marque
But idk how to compare 2 fields in the same form.