in general: yes, once you rid of the syntax errors. mysql_fetch_array gets you on row each time it is called (used in a while loop like this, until there are no more rows).
$query = "SELECT title,name from WHATEVER";
$result = mysql_query($query);
while ($qry = mysql_fetch_array($result))
{
echo "Title" . $qry[title]." ";
echo "Name" .$qry[name]." ";
}
assuming that your query is valid, this would display all in one line, with only some spaces (keep in mind that spaces are ignored unless they are within quotes), so you might change this to
$query = "SELECT title,name from WHATEVER";
$result = mysql_query($query) or die (mysql_error());
while ($qry = mysql_fetch_array($result))
{
echo "Title " . $qry['title']." ";
echo "Name " .$qry['name']."<br />";
}