Welcome Guest, Not a member yet? Register   Sign In
update from array values
#4

[eluser]Kamusksn[/eluser]
I have solve the problem with the help of freshpixel by IRC, he told me give the id value to every checkbox, to use as index for delete.

so, first I'm checking if ($this->post->('delete') is true, if it's true

I count the array items (marked rows for delete), I select the total rows for the DB and if
marked rows => total rows, I run a query to delete records from 2 tables if not

I use foreach to go through marked deletes and delete items just from 1 table.



Messages In This Thread
update from array values - by El Forum - 05-13-2014, 12:38 PM
update from array values - by El Forum - 05-13-2014, 01:56 PM
update from array values - by El Forum - 05-14-2014, 08:03 AM
update from array values - by El Forum - 05-14-2014, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB