Welcome Guest, Not a member yet? Register   Sign In
Delete multiple rows from database table
#3

If i use this snippet:
PHP Code:
$deleteImages $imagesModel->whereIn('id_article'$id)->delete();
$deleteArticles $articlesModel->whereIn('id'$id)->delete(); 

I have an error:
Code:
CodeIgniter\Database\Exceptions\DatabaseException #8
Deletes are not allowed unless they contain a "where" or "like" clause.

Please, can you write the correct query for delete multiple rows? Thanks for help me.
Reply


Messages In This Thread
RE: Delete multiple rows from database table - by eleumas - 05-05-2020, 11:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB