I need help :)
I have a while/loop that gets values from my database. This loop combines database values with $_POST input and generales a $score for each item.
CODE:
while($row=mysql_fetch_assoc($res)){
$score=($row["near_beach_score"]*$result_a)+
($row["near_city_score"]*result_b)+
($row["near_swim_pool_score"]*result_c)+
($row["near_public_transport_score"]*result_d)+
$row["house_promote_score"];
$array_content.='array('.$row["id"].', '.$score.') ';
when the while/loop is done I want to have a multiple array with the content of the string generated in the while/loop.
Like: $complete_array = array ($array_content);
and then i want to apply a array_multisort.
How to concatenate/insert $array_content into $complete_array = array ($array_content); ?
Apreciate if you have time to help. /Sérgio