load->helper("form"); //$sql = "select * from userinf"/> load->helper("form"); //$sql = "select * from userinf">
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 ?>