I'm trying to receive data from the database mySQL in Opus Flex (SWF)
I have several cards, each of which has its own importance that you need to show by clicking on the card.
I created a table named "flash" with fields "card" and "name". Variable $card generated script at random from 1 to 52 and depending on this card is displayed. Next, i create a file select.php as described in
http://www.digitalworkshop.com/Resource ... ata2.shtml
Code:
<?php
$card = $HTTP_POST_VARS['card'];
$DBhost = "localhost";
$DBuser = "xxxxxx";
$DBpass = "xxxxxxxxx";
$DBName = "xxxxxxxx";
$connect = mysql_connect($DBhost,$DBuser,$DBpass);
$db = mysql_select_db($DBName,$connect);
$query = "SELECT * FROM flash WHERE card = $card
$result = mysql_query($query, $connect);
$row = mysql_fetch_array($result);
$data = $row['name'];
echo $data;
?>
Created action Post Web Date with URL
http://xxxx/select.php
On source, I made string (card) and variable (card)
On destination, I made string (name) and variable (name).
It seems all right, but ready flash nothing shows, although if I just let IE (or any browser), it gives name of card correctly.
What is my mistake?