Looped Insert changes to Select |
My guess is something in the model looks for duplicate by doing a select before attempting an insert. If the record already exist, in doesn’t insert the line. Then when you print the last query, you’re printing that select because it is the last query if the insert didn’t happen.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Looped Insert changes to Select - by SoccerGuy3 - 10-20-2021, 10:02 AM
RE: Looped Insert changes to Select - by ikesela - 10-20-2021, 10:00 PM
RE: Looped Insert changes to Select - by SoccerGuy3 - 10-21-2021, 07:12 AM
RE: Looped Insert changes to Select - by php_rocs - 10-21-2021, 11:08 AM
RE: Looped Insert changes to Select - by SoccerGuy3 - 10-21-2021, 11:16 AM
RE: Looped Insert changes to Select - by Acuru - 10-21-2021, 11:45 AM
RE: Looped Insert changes to Select - by php_rocs - 10-21-2021, 12:01 PM
RE: Looped Insert changes to Select - by SoccerGuy3 - 10-21-2021, 12:23 PM
RE: Looped Insert changes to Select - by includebeer - 10-21-2021, 03:33 PM
RE: Looped Insert changes to Select - by SoccerGuy3 - 10-21-2021, 03:53 PM
RE: Looped Insert changes to Select - by InsiteFX - 10-22-2021, 12:56 AM
RE: Looped Insert changes to Select - by SoccerGuy3 - 10-22-2021, 06:30 AM
|