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

2006-03-02 Thread Robin Vickery
On 02/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Can you inform where precisely I must include, so that neither error is > displayed or search output is displayed differetly. Oh, I give up. Where's my Little Book of Calm?... -robin

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

2006-03-02 Thread Remember14a
  I agree,   $res = array();   needs to be declared. I tried this at various level in the code of 300 lines, what happenes if error is suppresses, the search output is displayed in different manner.I have posted full code at this link.Can you inform where precisely I must include, so that neither

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

2006-03-02 Thread Robin Vickery
Remember14a wrote: > > $i = 0; > while ($row = mysql_fetch_row($result)) { >$res[$i]['title'] = $row[2]; >$res[$i]['url'] = $row[1]; >if ($row[3] != null && $show_meta_description == 1) > $res[$i]['fulltxt'] = $row[3]; >else >$res[$i]['fulltxt'] = $row[4]; > > >$res[

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

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

2006-03-01 Thread Remember14a
    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 example,law at    http://www.abcdefg.us/s

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

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

2006-03-01 Thread Remember14a
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  putting this code before     $res[$i]['size'] =

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

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

2006-03-01 Thread Remember14a
I have done as per your instructions, and put   var_dump($res);BEFOREusort($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/public_html/search/searchfuncs.php on

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()

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

2006-03-01 Thread Remember14a
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(): The argument should be an a

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

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: You have written, Now do a var_dump($res) and see what *is* in $res or do print_r(). Can you precisely mention where you want me to put this piece of code. Please include your original post so we can all see it so we don't have to search to find what you're talkin

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

2006-03-01 Thread Remember14a
You have written, Now do a var_dump($res) and see what *is* in $res or do print_r(). Can you precisely mention where you want me to put this piece of code.

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

2006-02-28 Thread Robin Vickery
On 28/02/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > No this doesnt solve error. > 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 err