• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array in an array, I think

#8
[eluser]mdcode[/eluser]
Sorry about the delay on this one, damn time zones... but thanks very much guys, the solution from verynewtothis worked a treat. Thanks also to waldmeister, I'm not quite sure if your solution would have worked in my case as well, I just want to thank you for taking the time to try to help and write it up - the link to the mysql forums was just a quicker, neater solution.

Thanks again guys.

For those visiting this thread with the same issue, the following is my working code:

MODEL
Code:
function get_division($division = '')
{
   $query = $this->db->query("SELECT first_name, last_name FROM cfb_users WHERE FIND_IN_SET('$division', division)");
   $results = $query->result_array();

   return $results;
}


Messages In This Thread
Array in an array, I think - by El Forum - 08-10-2009, 08:46 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:21 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:35 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:46 PM
Array in an array, I think - by El Forum - 08-11-2009, 12:31 AM
Array in an array, I think - by El Forum - 08-11-2009, 12:50 AM
Array in an array, I think - by El Forum - 08-11-2009, 01:16 AM
Array in an array, I think - by El Forum - 08-11-2009, 05:28 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.