Skip to content

Tag: javascript

How to update multiple records in Codeigniter

In above code snippet first function is declared in controller and second function is declared in model. I want to update owner for multiple rows having ids in $astrep. Can anyone please help me? Answer You can use whereIn() or orWhereIn() methods from query builder class. Refer https://codeigniter4.github.io…

SQL transaction with JS Array of Objects?

Say i have an Array of Objects Now i create a comma seperated list To pass it to sql.transaction? is there any other way then to loop through the array and pass object each by one or can i pass bulk array? When i pass the comma_seperated_list_response it says Error object Object Answer If every object into yo…