PHP MVC 初心者の質問...
<br /> function postedit(){<br /> $this->load->helper("url");<br /> $this->load->helper("form");<br /> //$sql = "select * from userinfo where username = 'zhangning'";<br /> $data["user"] = $this->db->query("select * from userinfo where username = '".$this->uri->segment(3)."'");<br /> <br /> $this->load->view("postedit",$data);<br /> }<br />
<?php echo $user->Age ?>