Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Guesuper Guesuper is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 408
Rep Power: 14
Guesuper mempunyai hidup yang Normal
Default Nanya ttg CodeIgniter Gan

gan gw maw nanya,



ceritanya ane maw outputin variable yang digenerate oleh code ane yg ditulis ke sebuah table....



code di CI:




Code:

public function viewdata() {
$this->load->helper('url');
$this->load->library('table');
$this->load->view('viewdata');
$this->load->database();
$storedq = "SELECT * FROM park_lot";
$query = $this->db->query($storedq);
if ($query->num_rows() > 0)
{
foreach ($query->result() as $row)
{

}
}

}

nah sekarang ane maw nampilin result dari query di atas di dalam html nya gan:




Code:


Slot IDPlat Nomer



masalahnya , php ane error, katanye variable $row blom dideklarasi... gimana yah gan solusinya? thx



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 02:37 AM.


no new posts