Try:
$result=mysql_query('SELECT name from people');
$field=mysql_fetch_field($result);
That would return the details of the field 'name' but I doubt it's what you want. If you want the value of the field use:
$result=mysql_query('SELECT name from people');
$row=mysql_fetch_assoc($result);
$name=$row['name'];
If there are multiple rows you should use:
$result=mysql_query('SELECT name from people');
while($row=mysql_fetch_assoc($result))
$name[]=$row['name'];
That will create an array of names.