• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.