Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-02 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2006-03-01 at 22:26, [EMAIL PROTECTED] wrote: Is there a good reason for why you're clogging the mailing list with your fancy shmancy HTML emails? he's trying to cut down on the ammount of reading I do ;-) Cheers, Rob. -- PHP General Mailing List (http:

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: Below is the detailed code and error this is giving, *Warning*: usort(): The argument should be an array in */home2/wwwabcde/public_html/search/searchfuncs.php* on line *311* *---* *Once I enter for examp

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Robert Cummings
On Wed, 2006-03-01 at 22:26, [EMAIL PROTECTED] wrote: > Is there a good reason for why you're clogging the mailing list with your fancy shmancy HTML emails? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.c

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: *If I put this *code $res = array(); while($row = mysql_fetch_assoc($query_result)) { before usort($res, "cmp"); give this error ** ** *Parse error*: parse error, unexpected $ in */home2/wwwabcde/public_html/search/searchfuncs.php* on line *316* ** *even * put

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: I have done as per your instructions, and put var_dump($res); BEFORE usort($res, "cmp"); Please, go again to http://www.abcdefg.us/search/search.php Enter law we get this output. NULL *Warning*: usort(): The argument should be an array in */home2/wwwabcde/pub

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: let me give you more details to understand problem with the said code. go to this link, please. http://www.abcdefg.us/search/search.php in search enter, Justice, you get response without an error. Now enter law, you get error, pasted below, *Warning*: usort()