Welcome Guest, Not a member yet? Register   Sign In
mysql_fetch_row() in CodeIgniter
#4

[eluser]punchi[/eluser]
[quote author="skunkbad" date="1260702146"]how about result_array() ? I know you are looking for numberic indices, so perhaps you can extend the method?[/quote]

This code:

Code:
<?
foreach ($query->result_array() as $row)
{

echo $row[0]; //tried $row['0'];
echo $row[2]; //tried $row['2'];
}
?>

Doesn't work.

What you mean with extend the method? Modify the core of CodeIgniter?

[quote author="umefarooq" date="1260709217"]here is the user guide link for your problem.

http://ellislab.com/codeigniter/user-gui...sults.html[/quote]

My friend, its the SAME link I provided (read my post) where I didn't find any solution.


Messages In This Thread
mysql_fetch_row() in CodeIgniter - by El Forum - 12-12-2009, 10:52 PM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-12-2009, 11:02 PM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 01:00 AM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 11:07 AM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 11:09 AM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 11:14 AM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 11:21 AM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 01:51 PM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 02:57 PM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 03:35 PM
mysql_fetch_row() in CodeIgniter - by El Forum - 12-13-2009, 04:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB