I have 3 tables: articles:
id title content date
tags:
id name
tags_in_news:
id news_id tag_id
news_id is foreign key for articles table and tag_id is foreign key for tags tables...How to delete an article?? I tried but did not receive,my code:
$aid=(int)$this->uri->segment(3,0);
$this->db->query("DELETE * FROM articles, tags_in_news WHERE articles.id = $aid AND tags_in_news.news_id = $aid ");
Help me please ;)