Data from MySQL databases are stored in arrays and are only displayed the way you tell them to be, I dont see how they are displayed below each other unless you specifically say so. Here is how to do it beside each other with a non-braking-space between each record.
while ($out = mysql_fetch_array($myquery)) {
echo $out[0]." ";
}
this is assuming you only have one field per record.