Re: [PHP] Fairly simple array question

2003-10-27 Thread Curt Zirzow
* Thus wrote Terence Parker ([EMAIL PROTECTED]): > How can I transfer the results above into an array such that I only need > to check $group_result->group_id against > $usergroup[$group_result->group_id] ? <-- I know that won't work > syntactically, it's an example only. > > Or is there a be

[PHP] Fairly simple array question

2003-10-26 Thread Terence Parker
I'm retrieving results from a MySQL database - they would be of the form (form table 'usergroup'): +--+--+ | username | group_id | +--+--+ | tparker |3 | | tparker |6 | | tparker |7 | | tparker |8 | +--+--+ This