[eluser]Unknown[/eluser]
I am just confused on where I will type the examples in the USER GUIDE manual.
example on DATABASE CLASS, where I will type the examples presented there?
is in the MODELs folder?
Code:
$query = $this->db->query('SELECT name, title, email FROM my_table');
foreach ($query->result() as $row)
{
echo $row->title;
echo $row->name;
echo $row->email;
}
echo 'Total Results: ' . $query->num_rows();
Will I type this code on MODEL?
Code:
$query = $this->db->query('SELECT name, title, email FROM my_table');
Then I will type this in VIEW?
Code:
foreach ($query->result() as $row)
{
echo $row->title;
echo $row->name;
echo $row->email;
}
echo 'Total Results: ' . $query->num_rows();
Thanks for the HELP!
Im really very noob on this... so please be patient.
THanks