Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
rigpig #1
looking for solution php/flash
input text field sends to php to search database (MySQL) finds information
sends back to flash
flash takes infromation and displays it properly into dynamic text fields.
All takes place on one frame currently.
How do i find out if the variables are even being loaded into flash? I tried
trace and i get nothing returned..
Desperate help
rigpig
IE
Input (instance Name): tbxStock
Dynamic Text Fields(instance Names): tbxVIN, tbxYear
Actionscript:
function onSend()
{
formdata = new LoadVars();
formdata.first = "";
formdata.first = tbxstock.text;
replydata = new LoadVars();
replydata.reply_first = "";
replydata.onLoad = function(success)
{
if (success == true) {
tbxVIN_txt.text = replydata.VIN;
tbxVIN = tbxVIN_txt.text;
tbxYear.text = this.Year;
trace("Reply Vin " + tbxVIN);
trace ("Reply Year " + tbxYear.text);
} else {
trace("Reply Failure");
}
};
formdata.sendAndLoad("http://localhost/php/handlesubmit.php", replydata,
"POST");
}
php code
$Host="localhost";
$DBName="MyDatabase";
$TableName="inventory";
$reply_first = $HTTP_POST_VARS['first'];
$Connect=mysql_connect($Host);
mysql_select_db($DBName, $Connect);
$query = "SELECT * FROM inventory WHERE Stock_Number ='$reply_first'";
$result = mysql_query($query);
$numR = mysql_num_rows($result);
if ($numR>0) {
for($i=0; $i < $numR; $i++) {
$row = mysql_fetch_array($result);
}
$reply_first .="&Stock
Number".$i."=".$row['Stock_Number']."&VIN".$i."=".$row['VIN']."&Year"";
$values = $reply_first;
echo $values;
}else {
print "not connected ";
}
?>
php output
&Stock Number0=123&VIN0=1234567890&Stock Number0=123&VIN0=1234567890&Stock
Number1=11111&VIN1=11111111111111111
rigpig Guest
-
Flash Player 9 Intel Mac Solution
:cool; ISSUE: Basically, what I have found on the call with a customer, is that; after installing latest version of FP people were unable to... -
finalement la solution pour flash player 9 sur internet
Bonjour Après une infinité de tentatives j'ai trouvé la solution pour installer flash player 9 aussi su internet explorer. En effet meme si... -
Solution to "could not find the macromedia flash"
to solve this once and for all, right click on the desktop, get properties, go to screen saver, and erase any/all screen savers you downloaded that... -
Any solution for Sound issue in Flash
:disgust; Has any body found a fix for the sound issue in flash i am using XPpro. It is very annoying. Any help would be appreciated. Thanks -
Solution to Work Flash comm in Lan Network.
Hello all, Here is the solution to work the Flash comm server in LAN Network. contact ur system admin and do as follows 1. goto Local Area...



Reply With Quote

