Digitalosophy
June 19th, 2003, 09:15 PM
Hey guys,
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".
Oh I am using php and mySQL
Here is the code that display's one field:
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
for ($i=0; $i <$num_results; $i++){
$row = mysql_fetch_assoc($result);
print "title=".$row['date'];
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.
Thanks
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".
Oh I am using php and mySQL
Here is the code that display's one field:
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
for ($i=0; $i <$num_results; $i++){
$row = mysql_fetch_assoc($result);
print "title=".$row['date'];
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.
Thanks