0
I have two tables:
curso
curso_configurar
With the following structure:
My question is: I need to include within the curso_configurar
, the courses that will be configured, until there is OK. However, when I add a new configuration, I cannot list the course that has already been configured.
I tried to do it this way:
SELECT * FROM (`curso`) LEFT JOIN `curso_configurar` ON `curso_configurar`.`cur_id`=`curso`.`cur_id` WHERE `curso_configurar`.`cur_id` NOT IN ('curso.cur_id') ORDER BY `cur_titulo` ASC
In this case, I list only the courses that have already been configured, I need to do the reverse, list the courses that have NOT BEEN configured.
How can I ride?
I did it this way: https://pastebin.com/PdQV8Wj8
– Sr. André Baill
php
It seems Greek to me: I don’t know when you’re running, concatenating, declaring, getting the value or anything else.– Diego Rafael Souza