Welcome Guest, Not a member yet? Register   Sign In
how to display data from the db in html tables dynamically?
#11

[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');
#12

[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
#13

[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.




Theme © iAndrew 2016 - Forum software by © MyBB