# Mysql-php-flash

**URL:** <https://forum.kirupa.com/t/mysql-php-flash/216768>\
**Category:** Uncategorized\
**Created:** [February 20, 2007, 1:03pm UTC](https://forum.kirupa.com/t/mysql-php-flash/216768 "2007-02-20T13:03:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![korkor5](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@korkor5](https://forum.kirupa.com/u/korkor5)\
**Post date:** [February 20, 2007, 1:03pm UTC](https://forum.kirupa.com/t/mysql-php-flash/216768/1 "2007-02-20T13:03:03Z")

</div>

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
