CodeIgniter Forums

Full Version: How can I put a checkbox column in the database generated table?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I am generating a table from the results of a database query like this
$sql='SELECT * FROM users';
$query = $this->db->query("SELECT name,email FROM users");
echo $tab;
Now in the above table I am getting name and email of all users.I need to put a checkbox or radio box column for every row like in a form and post that selected item(s) to another controller for editing the data or deleting the data.How can I do that.Should I get the library function $this->table->generate() source code and edit it to make a new function which will have the new column with checkbox/radio buttons. If so please post any code.If you thought of any other way please suggest one.Thanks in advance.