Welcome Guest, Not a member yet? Register   Sign In
Is this possible with CI AR?
#3

[eluser]alboyd[/eluser]
Yeh I don't understand why people would use AR either. I just use plain old SQL queries directly using $this->db->query($query_str, array(values_passed_into_query))
Code:
<?php foreach($products_query->result() as $product):
extract($product); ?>
<p>Name: &lt;?php echo $product_name; ?&gt;</p>
<p>Details: &lt;?php echo $product_description; ?&gt;</p>
&lt;?php endforeach; ?&gt;

That should do it I'd guess?


Messages In This Thread
Is this possible with CI AR? - by El Forum - 08-21-2009, 08:27 PM
Is this possible with CI AR? - by El Forum - 08-21-2009, 08:50 PM
Is this possible with CI AR? - by El Forum - 08-21-2009, 10:14 PM
Is this possible with CI AR? - by El Forum - 08-21-2009, 10:25 PM
Is this possible with CI AR? - by El Forum - 08-21-2009, 10:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB