How to echo a value from select query in codeigniter
<p>How do i get the value of id from the following query</p>

<pre><code>$id = $this-&gt;db-&gt;query("SELECT id from tbl_profile_main WHERE token_='".$token."';"); 
</code></pre>