lol...There is nothing wrong with the flash file. All it does is show the results. I need the mysql db to be in order no matter what, even if something gets deleted. Here is what I am doing...
Php is telling flash how many rows that the db has. Flash is duplicating its movieclip that many times. Each time it is duplicated it sets a number to the clip...so if we have 8 rows in the db, flash duplicates and sets:
for comment 1: num = 1
for comment 2: num = 2
So I need it to be read the right way by php...:
$num = $_POST['num'];
$result = mysql_query("SELECT comments, Author, Email FROM comments".$number." WHERE ID='$num'") or die('Sorry, there was an error: ' . mysql_error());
while ( $row = mysql_fetch_array($result) ) {
echo($row['comments']);
echo($row['Author']);
echo($row['Email']);
}