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

2006-03-02 Thread Remember14a
 neither error is displayed or search output is displayed differetly.    $res = array(); in code posted at below link.   http://pastebin.com/579621 --- Begin Message --- Remember14a wrote: > > $i = 0; > while ($row = mysql_fetch_row($result)) { >$res[$i]['title'] = $row[

[PHP] url of code pasted

2006-03-01 Thread Remember14a
Here is the url http://pastebin.com/579621

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

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'] =

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

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

[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] usort(): The argument should be an array

2006-02-28 Thread Remember14a
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 error. Now enter law, you get error, pasted below, Warning: usort(): The a

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

2006-02-28 Thread Remember14a
Can anyone comment and fix this error Warning: usort(): The argument should be an array in /home2/wwwabcde/public_html/search/searchfuncs.php on line 300 below is part of the code which gives this error, the line highlighted