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

2006-02-28 Thread Thorsten Suckow-Homberg
$row[4]; $res[$i]['size'] = $row[5]; $res[$i]['weight'] = $result_array[$row[0]]; $i++; } usort($res, "cmp"); echo mysql_error(); $res['maxweight'] = $maxweight; $res['results'] = $results; return $res; /**/ } ?> That's not enough, we need the part that sits above an

[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

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

2006-02-28 Thread Robin Vickery
On 28/02/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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 [...] > usort($res, "cmp"); Put a print_r($res) 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