Ok so i wouldnt worry about mysql_real_escape_string() until you have made it work. Also have you managed to actually print out the query on the page so you can see what the actual query is?
maybe your query should just be:
$query = mysql_query("SELECT firstname, surname, address, age FROM customers WHERE firstname='$myq'");
Not sure where $firstname comes from within your query?
It also looks like $query is not appended to mysql_query() which means mysql_result() wont work
Also you seem to have selected the database mysql_select_db() twice
Are you getting any connection errors?
Check that the form is post and the name of the input field is myq?