Jump to content

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;
?>

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.