[eluser]phantom-a[/eluser]
I'm using
<?php foreach($query->result() as $row): ?>
statements to get the $data passed from the controller
I've tried just putting something like
<?$query->$sql_field;?> but this does not work.
Is there another way with less php code to put?
In my controller I'm getting 1 row from mysql with a "WHERE something="
So I think foreach loop is kind of too much to type just get a 1 field from that that row.
Code:
<?php foreach($query->result() as $row): ?>
<?php endforeach; ?>