This content has been marked as final. Show 8 replies
how are you passing...? what is your data.?
I have a PHP script and I get flash to load the variables from it. The code is as follows. Taken out the connection to DB for security.
$hostname_conn = "";
$database_conn = "";
$username_conn = "";
$password_conn = "";
// establish a SQL connection to the host - host, user, pass
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error("The site database appears unable to provide a connection. Please contact support. ".mysql_error(),E_USER_ERROR); // or die("The site database appears unable to provide a SQL connection. Please contact support.");
// connect to the right DB (there may be multiple db's on the server) dbName
mysql_select_db($database_conn, $conn) or die("The site database appears to be unavailable. Please contact support.");
$qCheck = "SELECT * FROM pics";
$rsCheck = mysql_query($qCheck) or die("Check Failed : ".mysql_error());
$cCheck = mysql_num_rows($rsCheck);?>
Just a thought, how about this:
$cont = 0;
print('&cont..'='$row["img"].'&'); // this way you'll know the size
I am now getting the following output in php
how do get flash to decifer the different variables in a loop?
When you load the variables into the loadVars object you can access them this way:
should the php results read
thanks for all your help I really appreciate it
No worries mate,
(take away the $ sign, my mistake)
Thanks I know have the 0 record showing in the flash. I don't suppose you have any idea how to set up a button in flash to display the next result do you?