Welcome Guest, Not a member yet? Register   Sign In
Looped Insert changes to Select
#9

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! ***/
Reply


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 php_rocs - 10-21-2021, 11:08 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 includebeer - 10-21-2021, 03:33 PM
RE: Looped Insert changes to Select - by InsiteFX - 10-22-2021, 12:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB