PDA

View Full Version : execute var from PHP in FLA


Ralla
10-28-2005, 10:35 AM
Hi. I'm pretty new to all this, so I guess this question is kinda newbish.

Anyway, I'm trying to make PHP tell Flash which frame to go to.

Here's the PHP script:

<?php

include("dbconnect.php");

$email = addslashes($_GET['email']);

$result = mysql_query("SELECT email FROM shouts WHERE email = '$email'")

or die (mysql_error());

$number = mysql_num_rows($result);

if ($number > 0) {

$fejl = "fejl";

?>

And here's the AS:

stop();

loadVariablesNum("emailtjeck.php", 0, "GET");
if ($fejl=fejl) {
gotoAndPlay(fejl);
} else {
loadVariablesNum("post.php", 0, "GET");
play();
}

If you guys have any help og hints - please notify me! Thank you.

Cota
10-28-2005, 01:00 PM
<?php

include("dbconnect.php");

$email = addslashes($_GET['email']);

$result = mysql_query("SELECT email FROM shouts WHERE email = '$email'")

or die (mysql_error());

$number = mysql_num_rows($result);

if ($number > 0) {

echo $fejl = "fejl";

?>


I would suggest using loadVars() instead of LoadVariablesNum...

Ralla
10-28-2005, 01:24 PM
I solved it :)

Cota
10-28-2005, 01:28 PM
please share your solution.