Mysql-php-flash

Hello All, im trying to read values from a mysql database into different textboxes but as at now all the textboxes are filled with the same thing which is the first item of the database. This is not what i want. What i want is for the text boxes to be filled with the different items of the database. What am i doing wrong? Please help. Attached to this message is the php code i have and the actionscript code phpcode $userName = “helena”; $password = “GODLOVESME”; $con = mysql_connect(“localhost”,$userName,$password); if (!$con) { echo “not connect”; die('Could not connect: ’ . mysql_error()); } else { mysql_select_db(“helena”, $con); $result = mysql_query(“SELECT * FROM messages “); $j= 0; $nRows = mysql_num_rows($result); $rString =”&n=”.$nRows; for ($o=0; $o< 10; $o++){ $row = mysql_fetch_array($result); $hold= $row[‘name’]; echo “returnVal= $hold”; echo "
"; } actionscript code** _root[“nav”+count].textItem = lvIn.returnVal; thanx