Jump to content

Archived

This topic is now archived and is closed to further replies.

MikeWire

PHP with MSSQL and Flash - passing a variable

Recommended Posts

Hi everyone -
I am working on a project where I need to take a var from MSSQL to PHP to import into Flash - I am having trouble with the var not passing from the PHP to the flash...I have posted the prob on FlashKit, but I have a hunch my PHP is not working like I need it to:
[code]
<?php

include 'functions.php';

connect_DB();

//find_game_number_flash();
//$max = $row['0'];
//echo "$max";

$find_sql = "SELECT MAX(game_number) FROM planet";

$game_number_search = mssql_query($find_sql)
or die("Could not find MAX value");

$row = mssql_fetch_array($game_number_search);
$max_game_number = $row['0'];

echo "<br><br>
//  <tr>
//<td>MAX game number is: $max_game_number now send it to flash<td>
//  <tr><br>";

echo "max_game_num = $max_game_number";//echos the var $max_game_number correctly...

phpinfo(32);
?>
[/code]

My phpinfo(32); shows no POST vars which is why I think it is not passing to Flash - has anybody got an idea on how to handle this and is my PHP doing what its supposed to?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.