hello every one i want to convert my array into other array type , plz help me out . I m using this
$row = mysql_fetch_array($result, MYSQL_ASSOC);
You can't get a multi-dimensional array from the resultset of your SQL query in just one command. You need to repeat the function mysql_fetch_array
once per SQL result row.
Also you can use mysql_fetch_assoc
to get the results as an associative array.
To achieve your goal:
$num = mysql_num_rows($result);
for ($i = 0; $i < $num; $i++)
{
$myArray[] = mysql_fetch_assoc($result);
}