Welcome Guest, Not a member yet? Register   Sign In
the Table formatting library
#5

[eluser]yello[/eluser]
the view:

Code:
<? $this->load->view('dashboard/menu'); ?>

<div id="CONTENT">
    <h2>Client Pings</h2>
    <div id="TEXT">
    <p><b>Il est prĂ©sentement: &lt;?=date("Y-m-d H:i:s");?&gt;</b></p>
    <p>
    &lt;?
    echo $this->table->generate($pings);
    ?&gt;
    </p>
    </div>
</div>

&lt;? $this->load->view('dashboard/footer'); ?&gt;

the controller:
Code:
function pings()
    {
        $this->load->library('table');
        $pings = $this->db->query("SELECT * FROM `clientPing` ORDER BY `time` DESC LIMIT 100");

        if ($pings->num_rows() > 0)
        {
            $data['pings'] = $pings;
            $this->load->view('dashboard/pings', $data);
            
            
        }
    }


Messages In This Thread
the Table formatting library - by El Forum - 11-29-2007, 11:00 PM
the Table formatting library - by El Forum - 11-30-2007, 09:17 AM
the Table formatting library - by El Forum - 11-30-2007, 11:04 AM
the Table formatting library - by El Forum - 11-30-2007, 02:06 PM
the Table formatting library - by El Forum - 11-30-2007, 07:08 PM
the Table formatting library - by El Forum - 12-02-2007, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB