you just have to read out your query:
$query=mysql_query("SELECT * FROM x");
$array=mysql_fetch_array($query);
now you have all the data from the table x in the array "$array". To get them out you can then say:
echo $array[0];
for the first value, $array[1] for the second and so on..
ok?