\n"; echo "x_val\n"; while ($myrow = mysql_fetch_array($result2)) { printf("%s\n", $myrow["x_val"]); } echo "\n"; } } } // PHP code about to end ?>