Forum Moderators: coopster

Message Too Old, No Replies

Load Var From Mysql Into Flash

         

rogernem

8:33 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 ;)

baertyp

9:58 pm on Nov 18, 2004 (gmt 0)

10+ Year Member



If your flash code accepts external input, then you can assemble the actual call tag using the PHP expressions.

Afaik PHP in it's current version has some ability to create dynamic FLASH code on the fly, but as this is not the focus of my work at all, I don't know anything about this.

Regards
Markus