Forum Moderators: open

Message Too Old, No Replies

Load Var From Mysql Into Flash 2

         

rogernem

8:34 pm on Nov 18, 2004 (gmt 0)

10+ Year Member



I have the following code (flash.php)


<?
include "config_system.php";
include "idatabase.php";
include "ifunctions.php";

$connection = pg_connect( $connection_string ) or die ("Falha de Conexăo ao Banco de Dados");

$sql_empresas = "SELECT * FROM empresas";
$query1 = exec_sql($connection,$sql_empresas);
$count_empresas = record_count($query1);

$sql_hh = "SELECT * FROM head_hunters";
$query2 = exec_sql($connection,$sql_hh);
$count_hh = record_count($query2);

$sql_vagas = "SELECT * FROM vagas";
$query3 = exec_sql($connection,$sql_vagas);
$count_vagas = record_count($query3);
?>

Empresas <? echo $count_empresas?>
<br>
Head Hunters <? echo $count_hh?>
<br>
Vagas <? echo $count_vagas?>

Well, IŽd like to have $count_empresas, $count_hh and $count_vagas to be show in a flash movie
into a dynamic text field
called count_empresas, count_hh and count_vagas

How can I do that?
What is the code to do that?

Tkz ;)

korkus2000

6:39 pm on Dec 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you mean Flash version 2?

RonPK

1:08 pm on Dec 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In case rogernem is still searching: loadVariables() [macromedia.com] could do the job.