# Loading dynamic data: only shows row 1

**URL:** <https://forum.kirupa.com/t/loading-dynamic-data-only-shows-row-1/67284>\
**Category:** flash\
**Created:** [October 14, 2004, 10:10am UTC](https://forum.kirupa.com/t/loading-dynamic-data-only-shows-row-1/67284 "2004-10-14T10:10:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramsey](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Ramsey](https://forum.kirupa.com/u/Ramsey)\
**Post date:** [October 14, 2004, 10:10am UTC](https://forum.kirupa.com/t/loading-dynamic-data-only-shows-row-1/67284/1 "2004-10-14T10:10:56Z")

</div>

Loading dynamic data: only shows row 1

Hi there folks my problem seems to be that when i run the below script the flash return just shows the content of row 1, even though i specify row 2

( id=‘2’ )

i’ve obviously missed something…Question is what ?

```auto
 

<?php
$connect = mysql_connect("path", "db", "pw");
mysql_select_db("db", $connect);
$result = mysql_query("SELECT * FROM cta_start WHERE id='2'");
$cant = 0;
while($row=mysql_fetch_array($result)){
	echo "Title$cant=$row[Title]&Comments$cant=$row[Comments]&Image$cant=$row[Image]&";
	$cant++;
}
echo "cant=$cant";
?>

```

i have another fla that uses the exact same sql syntax as described in the tutorial and that works fine…!!

Thank you for the help and your time

Ramsey
