Jubba was kind enough to help me with this last night, but now i screwed it up and can’t fix it. Here’s what I am doing: Displaying multiple fields in one flash textbox. I have it working where only one field can be displayed. I don’t know how to combine my multiple fields to display in the textbox “title”.
Title being the flash variable, date being a field in my database. Also how wil I be able to display all records in that field. i am used to ASP which just uses a loop. Not sure how to “loop” in php.
there are tons of different ways to go about this… just figuring how you want to do it is the tough part. It really depends on how your flash file is set up… actually what i would do is this:
// PHP FILE
$title = ""; // I do this to tell me that $title is going to be a string.
for ($i=0; $i <$num_results; $i++){ // for loop
$row = mysql_fetch_assoc($result); // You know what this is
$title .= $row['date'] . "\\\r\\
"; // add to the string
}
print "title=".$title; //print it out so Flash can read it.
jubba, everything is working good. however, for some reason
"\r
" keeps showing in my flash file. i have tried numerous ways of getting this out but no dice. any one have ideas?