Manuals are your friends.
-- Begin quote from manual --
mssql_fetch_field
(PHP3 , PHP4 )
mssql_fetch_field -- Get field information
Description
object mssql_fetch_field (int result [, int field_offset])
Returns an object containing field information.
-- End quote from manual --
So this function returns an OBJECT, not an array.
change to:
$newrow=mysq_fetch_array($result,MYSQL_ASSOC);
and get the value you want using this:
$the_field_i_wanted=$newrow["takeaway"];