Welcome, Guest. Please login or register.
Did you miss your activation email?
02/03/12, 23:50
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  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 2018 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.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!