Welcome Guest, Not a member yet? Register   Sign In
add extra rows in a HTML table
#9

[eluser]raffie77[/eluser]
ok this is what I have:
the names are in dutch

controler
Code:
public function overzicht() {
        $this->load->model('Get_DB');
        $data['title']          = 'overzicht';
        $data['main_content']   = 'overzicht';
        $data['gen_query']      = $this->Get_DB->overzicht();
        $this->load->view("template", $data);

the model part:

Code:
public function overzicht() {
        $query = $this->db->query("SELECT * FROM invoer "
        . "ORDER BY datum DESC");
        $gen_query = $this->table->generate($query); // <<< results are just perfect, shows all I need
        return $gen_query;
    }

the view part:
Code:
&lt;?php
echo anchor('brandstof/insert','Toevoegen','class="button"'); //go to the view that inserts data
echo $gen_query;

but now I want to add a extra table header with title "operations"
and after each table row I want a anchor "edit" and "delete"

kan I manage that with the
Code:
$gen_query = $this->table->generate($query);
method of do I need to create a HTML table manualy?

Ralph


Messages In This Thread
add extra rows in a HTML table - by El Forum - 10-28-2013, 02:19 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 02:25 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 02:26 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 02:39 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 03:19 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 03:35 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 03:41 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 03:44 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 03:55 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 04:12 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 04:46 AM
add extra rows in a HTML table - by El Forum - 10-28-2013, 07:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB