load->helper("form"); //$sql = "select * from userinfo&nb"/> load->helper("form"); //$sql = "select * from userinfo&nb">
Home > Article > Backend Development > PHP MVC菜鸟有关问题.
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 ?>