Alright, what I am trying to do is dynamically load some information from a database into a flash file, but it's just not working. I am pretty sure the major problem is with my PHP but I just cannot figure it out, I have been troubleshooting for the past hour with this.
As of right now the script only shows the newest entry, when I view the script online it comes up with this:
&Name0=Test8000&TextData0=ZUBBLE CUBBLE MUBBLE SHUBBLE&Author0=Toby&TheDate0=June 5th, 3030&NumItems=1&Go=Yes&
Now, that is what should come up, but there are two other entries that were made earlier that are not showing up.... Here is the script:
if ($result) {
while ($tablefield = mysql_fetch_array($result, MYSQL_ASSOC)) {
$id = $tablefield['id'];
$title = $tablefield['title'];
$author = $tablefield['author'];
$thedate = $tablefield['date'];
$text = $tablefield['story'];
}
$numReturn = count($tablefield);
$i = 0;
while ($i < $numReturn) {
$Name = $title;
$TextData = $text;
$Author = $author;
$TheDate = $thedate;
print "&";
print "Name$i=$Name&TextData$i=$TextData&Author$i=$Author&TheDate$i=$TheDate";
$i++;
}print "&NumItems=$numReturn&Go=Yes&";
}
gah! What in the world is wrong with it?!?
Thanks a lot in advance! Help appreciated!