hi ,
i want to delete records form these tablesw i have pk fk relationshilp with addcampid on all tables. master table is add_campaign...
i am using CI.

mytable are

add_campaign cac,
add_subscriber cas
calender cc,
calender_master ccm,
task cc,
task_master ctm,
triggers_actions cta,
triggers_email cte,
jqcalendar jq,
manage_action cma

any help aprr.

Check the guide: http://codeigniter.com/user_guide/database/active_record.html#delete



$tables = array('table1', 'table2', 'table3');
$this->db->where('addcampid', $id);


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.