Sandeep Pariyar Sandeep Pariyar - 2 years ago 142
SQL Question

How to echo a value from select query in codeigniter

How do i get the value of id from the following query

$id = $this->db->query("SELECT id from tbl_profile_main WHERE token_='".$token."';");

Answer Source


$row = $id->row();
echo $row->id;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download