Welcome Guest, Not a member yet? Register   Sign In
using the $this->table->generate
#3

[eluser]CroNiX[/eluser]
@Aken There is an example in the user guide showing a table created from a database query result.
Quote:Here is an example of a table created from a database query result. The table class will automatically generate the headings based on the table names (or you can set your own headings using the set_heading() function described in the function reference below).
Code:
$this->load->library('table');
$query = $this->db->query("SELECT * FROM my_table");
echo $this->table->generate($query);


Messages In This Thread
using the $this->table->generate - by El Forum - 10-12-2012, 10:24 AM
using the $this->table->generate - by El Forum - 10-12-2012, 03:19 PM
using the $this->table->generate - by El Forum - 10-12-2012, 05:04 PM
using the $this->table->generate - by El Forum - 10-12-2012, 07:35 PM
using the $this->table->generate - by El Forum - 10-13-2012, 12:10 AM
using the $this->table->generate - by El Forum - 10-13-2012, 01:06 PM
using the $this->table->generate - by El Forum - 10-13-2012, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB