Welcome Guest, Not a member yet? Register   Sign In
mysql_fetch_array implementation in DB Class?
#1

[eluser]Unknown[/eluser]
I'm pretty new to codeigniter and quite impressed by it's capabilities but I still can't find whether mysql_fetch_array is implemented in the Database Class. Now I'm starting to think that probably it isn't.

So is there a method in the DB class that corresponds to the mysql_fetch_array() or an else way to achieve the same effect... Consider me a newbie Smile
#2

[eluser]PoWah[/eluser]
Read this: http://ellislab.com/codeigniter/user-gui...sults.html

Generally, you are talking about
Code:
$query = $this->db->query("YOUR QUERY");
foreach ($query->result_array() as $row)
{
   echo $row['title'];
   echo $row['name'];
   echo $row['body'];
}
#3

[eluser]Unknown[/eluser]
Yes, thank you!




Theme © iAndrew 2016 - Forum software by © MyBB