Re: Re: usort(): The argument should be an array
| From: | Chris | Date: | Thu, 02 Mar 2006 00:30:56 +0000 |
| Subject: | Re: Re: usort(): The argument should be an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231295@lists.php.net to get a copy of this message | ||
Remember14a@aol.com 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 talking about - and highlighting doesn't work because most people will get text-only emails. ........... $row[4]; $res[$i]['size'] = $row[5]; $res[$i]['weight'] = $result_array[$row[0]]; $i++; } var_dump($res); <--------- usort($res, "cmp"); Then send us the output. -- Postgresql & php tutorials http://www.designmagick.com/