Welcome Guest, Not a member yet? Register   Sign In
Using In_Array with Query Results
#1

[eluser]lightnb[/eluser]
How can I do this?

Code:
$this->db->select('ForumCategoryName, ForumCategoryType');
$Query = $this->db->get('Forums_Categories');
$ResultArray = $Query->result();

if(in_array($CategoryName, $ResultArray['ForumCategoryName']))
{
...

I want to see if "$CategoryName" is one of the "ForumCategoryName"s found by the query.


Messages In This Thread
Using In_Array with Query Results - by El Forum - 03-23-2008, 06:50 PM
Using In_Array with Query Results - by El Forum - 03-23-2008, 06:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB