Welcome Guest, Not a member yet? Register   Sign In
Problem with function appel in controler
#3

[eluser]Unknown[/eluser]
[quote author="webthink" date="1206620483"]what does print_r ($sites) look like?[/quote]

this is the result of the print_r function :

Code:
CI_DB_mysql_result Object ( [conn_id] => Resource id #39 [result_id] => Resource id #52 [result_array] => Array ( ) [result_object] => Array ( ) [current_row] => 0 [num_rows] => 4 [row_data] => )

If i write this code :

Code:
foreach($sites->result() as $site):
    echo $site->id.'<br>';
endforeach;

i have the list of all my record. So, the result of my request is ok.


Messages In This Thread
Problem with function appel in controler - by El Forum - 03-27-2008, 12:52 AM
Problem with function appel in controler - by El Forum - 03-27-2008, 01:21 AM
Problem with function appel in controler - by El Forum - 03-27-2008, 01:30 AM
Problem with function appel in controler - by El Forum - 03-27-2008, 02:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB