• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.