Jump to content

[SOLVED] flash messing with php


pietbez

Recommended Posts

i have added a flash file to my php page and somehow its messing around with the php. some links and buttons on that page stopped workning. has any one ever encountered this?

 

here is the flash code

 

<script language="javascript" type="text/javascript">
if (AC_FL_RunContent == 0) {
	alert("This page requires AC_RunActiveContent.js.");
} else {
	AC_FL_RunContent(
		'width', '1000',
		'height', '100',
		'movie', 'cat_thumbs',
            'flashvars','category=<?php echo $item_rec[6];?>', ''
		);
}
</script>

 

here is an example of a page without the flash. the vote button is working

http://www.officiallythehottest.com/car/ferrari/

 

here is an example of a page with the flash. the vote button is broken and links are broken

http://www.officiallythehottest.com/car/bugatti-veyron/

 

 

any idea what the flash could be doin to my otherwize working php?

 

Link to comment
https://forums.phpfreaks.com/topic/140963-solved-flash-messing-with-php/
Share on other sites

ok, i have figgured something out.

my flash file calls this php in order to populate my flash file with pictures.

it looks like it is this php that messes with the links on main page.

 

could that be possible?

if i remove the echo from this php file everything works fine, appart ofcource the flash file that does not get populated with pictures

 

$category=intval($_POST['category']);
$do=mysql_query ("SELECT * FROM items WHERE category = $category ORDER by votes DESC" );
$x=mysql_num_rows($do);
if ($x>0) {
while ($row = mysql_fetch_array($do, MYSQL_ASSOC)) {
  $th.=$row["thumb_pic_path"].'|';} 
}

echo "&total=".$x."&thumbs=".$th;
?>

Archived

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

×
×
  • 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.