A table with fields is displayed from the database:
<th><?php echo $this->lang->line('id'); ?></th> <th><?php echo $this->lang->line('title'); ?></th> <th><?php echo $this->lang->line('thumbnail'); ?></th> <th><?php echo $this->lang->line('category'); ?></th> <th><?php echo $this->lang->line('date_added'); ?></th> <th><?php echo $this->lang->line('views'); ?></th> <th><?php echo $this->lang->line('status'); ?></th> <th><?php echo $this->lang->line('actions'); ?></th> I want to do that by clicking on the link
<td><a href="<?php echo base_url(); ?>videos/categories/<?php echo $video->cat_id; ?>" target="_blank"><?php echo $video->cat_name; ?></a></td> the table was sorted by the category column in the cat_id database
т.е. SELECT * FROM `videos` ORDER BY `videos`.`cat_id` ASC LIMIT 0 , 30 How to make a sorting request correctly so that the new window has a table with cat_id values?
videosORDER BYvideos.cat_idASC LIMIT 0, 30 perfectly selects all cat_id figures, well, in general, everything that is in the table - Stanislav