I am trying to pass the session to a php script that makes a graph for me. If I remove all the html code and the swf, and just use an include to the script, everything passes properly(lgraph.php).
However, the moment I add some html or other stuff to the script, the session data does not pass thru. The graph draws, but with no data on it. Here is the script, I am sure I am not doing something fairly simple....hopefully!
<?PHP
session_start();
// Connect to database and query accordingly
$db = mysql_connect("mysql.somewhere.com", "tim", "smith") or die(mysql_error());
mysql_select_db("adatabase",$db) or die(mysql_error());
$sql = mysql_query("SELECT * FROM some_data WHERE ID='500'") or die(mysql_error());
$row = mysql_fetch_row($sql);
$_session["shooter"] = $row;
?>
<html>
<body bgcolor="#808000">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="AutoNumber1">
<tr>
<td width="200%" rowspan="2" valign="top">
<OBJECT classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=40shots WIDTH=122 HEIGHT=399>
<PARAM NAME=movie VALUE="40shots.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=loop VALUE=false>
<EMBED src="40shots.swf" loop=false quality=high
WIDTH=122 HEIGHT=399 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED></OBJECT>
</td>
<td width="50%">
<p align="center">
<img src="lgraph.php">
</td>
<td width="50%">
<p align="center">
</td>
</tr>
<tr>
<td width="50%">
<p align="center">
</td>
<td width="50%">
<p align="center">
</td>
</tr>
</table>
</body>
</html>