$query = mysql_query("SELECT * FROM test LIMIT 1"); $row=mysql_fetch_array($query); $row=$row["host"]; echo $row;