Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Post Web Date in Flex
PostPosted: December 17th, 2008, 10:00 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
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?

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2008, 3:27 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
I solved this problem, at least in preview all works fine.

But many other functions does not work in ready flash:
1. Not show pictures with variables in the pathname
2. Not work a script random order.
3. Do not display values of some variables.
: (((

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2008, 7:17 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Nothing is produced.

Maybe someone have any ideas how to solve the problem for Opusflex:
1. Display one from the 50 pictures in random order.
2. Getting a text description for this image on click.

Thank you.

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 43 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group