how to read a single record from result()? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to read a single record from result()? (/showthread.php?tid=46101) |
how to read a single record from result()? - El Forum - 10-18-2011 [eluser]Unknown[/eluser] hello i am trying to read a signle record from result(). in my blog system i need to show username which i will get only from userid field which is present in both tables (blog & users). following is the code code for controller Code: $blgs['p']=$this->eventdata->postevent($config['per_page'],$this->uri->segment(3)); code for model:- Code: $sql=$this->db->get('events',$num, $offset); code for view:- Code: foreach($p as $row) Thanks for the help, |