Jump to content

PHP with MSSQL and Flash - passing a variable


MikeWire

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.