Welcome, Guest. Please login or register.
Did you miss your activation email?
09/02/10, 19:43
Home Help Search Login Register
News:
Loading and saving data to different external resources (txt files, databases) using AS3

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  Populate Combo Box AS3 & PHP & MySQL
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: Populate Combo Box AS3 & PHP & MySQL  (Read 1156 times)
JKofSpades
Server what's that
*
Posts: 10


View Profile Email
« Reply #15 on: 02/05/10, 05:13 »

 Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy

Hey Thanks A LOT guys for all of your help.  I figured it out while playing around with it.

I didnt have to change the "VARIABLES" to "TEXT" or anything.  In variables I had to encode everything inside the strings being sent (ESPECIALLY SINCE SOME DATA INCLUDED AMPERSANDS) and leave the ampersands between the sets of data alone:

<?php
require("mychiparty_dbinfo-LOCAL.php");

$link = mysql_connect("localhost",$username,$password);
mysql_select_db($database);
$table = "venues";

$result = mysql_query("SELECT name, address FROM $table");
$cant = 0;
while($row=mysql_fetch_array($result)){
   echo "Name$cant=" . urlencode("$row[name]") . "&";
   $cant++;
}
echo "cant=$cant";
?>


Once again THANX A BUNCH!
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!