I need to use the mysql query result.following is the mysql query.
while($row = mysql_fetch_array($result))
{
$name=$row['name'];
}
For example: result of above query is (name1,name2,name3...)
The problem is...
i need to return that result in the following function.How can i do it?
function results()
{
return array(
'name1' => t('name1'),
'name2' => t('name2'),
'name3' => t('name3'),
);
}
plz anyone help me.