CodeIgniter Forums

Full Version: how to display data from the db in html tables dynamically?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

El Forum

[eluser]theprodigy[/eluser]
just change your query. Don't use the 'select all' query.
Code:
$this->db->select('column_1, column_2, column_3');
$this->db->get('table');

El Forum

[eluser]towki[/eluser]
[quote author="theprodigy" date="1344229907"]just change your query. Don't use the 'select all' query.
Code:
$this->db->select('column_1, column_2, column_3');
$this->db->get('table');
[/quote]

but what if i have 50 colomns? just the ID that i dont want to display

El Forum

[eluser]theprodigy[/eluser]
50 columns in a single table? Or is your query using several joins?

If you have that many columns in a single table, you may want to look at how your database is structured.
Pages: 1 2