Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / March 2006



Tip: Looking for answers? Try searching our database.

PHP/MySQL getting garbage in Flash 8 Pro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ck1mark - 18 Mar 2006 18:42 GMT
my output = ck1mark%40hotmail%2Ecom=&onLoad=%5Btype%20Function%5D

Flash Code:
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean):Void {
    if (success) {
        trace(this);
    } else {
        trace("Error");
    }
}
my_lv.load("http://www.milliondollarring.com/showPayed.php");
PHP code:
mysql_connect($hostname, $username, $password) OR DIE ("Unable to connect to
database! Please try again later.");
mysql_select_db($dbname);
$query = "SELECT * FROM $usertable";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)) {
    echo $row[0];
}
somaboy mx - 22 Mar 2006 23:30 GMT
try:
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean):Void {
    if (success) {
        trace(this.email);
    } else {
        trace("Error");
    }
}

and in php:

[...]
while ($row = mysql_fetch_array($result)) {
    echo '&email=' . $row[0];
}

.s

> my output = ck1mark%40hotmail%2Ecom=&onLoad=%5Btype%20Function%5D
>
[quoted text clipped - 17 lines]
>      echo $row[0];
>  }
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.