Welcome Guest, Not a member yet? Register   Sign In
can run mysql query again in View
#1

[eluser]xico[/eluser]
Hi all

I am developing one app using CI.I am doing well,but now I am on the stage where I need to run mysql query under loop in VIEW file.
I have written a search query where I can't join any other table. this query returns me a array of data. I have passed this array into VIEW. this data contains ID which values are in another table. so can i write a query in VIEW?
for example
Code:
for($i=0;$i<count($data);$i++)
{
   $cid = $data[$i]['id'];

}

Now with the use of $cid value I need to fetch username from another table. so how can I get it on VIEW.

Please Guide.

Thanks


Messages In This Thread
can run mysql query again in View - by El Forum - 12-18-2008, 05:22 AM
can run mysql query again in View - by El Forum - 12-18-2008, 06:48 AM
can run mysql query again in View - by El Forum - 12-18-2008, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB