How to use $this->db->empty_table() for many tables? |
[eluser]troy_mccormick[/eluser]
The manual only shows being able to pass in one table name at a time. Your best bet would be to loop through each table in that array like such: Code: <?php From the manual: Quote:$this->db->empty_table(); EDIT: Wouldn't it be better to run $this->db->truncate(); instead? I'm not sure... |
Messages In This Thread |
How to use $this->db->empty_table() for many tables? - by El Forum - 04-06-2010, 02:40 PM
How to use $this->db->empty_table() for many tables? - by El Forum - 04-06-2010, 02:49 PM
How to use $this->db->empty_table() for many tables? - by El Forum - 04-06-2010, 02:49 PM
|