Hello,
1- I have query like this:
select * from users where active=1 and state ='CA' (simple query, but the my query more complex than this one)
I want to view list of all users with pagination with query result. on help file all see active record model
2-How I get single row with above query in CI ? without doing foreach ? like this below
Code:
$result = mysql_query("SELECT option_value FROM wp_10_options WHERE option_name='homepage' LIMIT 1");
$row = mysql_fetch_assoc($result);
echo $row['option_value']; (this is what I need )
Thank you