$res = sql_select('column', 'table'); $all = sql_fetch_all($res); // $all[0]['column'] is the first row