pietbez Posted January 15, 2009 Share Posted January 15, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/140963-solved-flash-messing-with-php/ Share on other sites More sharing options...
trq Posted January 15, 2009 Share Posted January 15, 2009 Flash is client side while php is server side, and never the two shall meet. Maybe your flash is messing up your html, but that has nothing to do with php. Quote Link to comment https://forums.phpfreaks.com/topic/140963-solved-flash-messing-with-php/#findComment-737873 Share on other sites More sharing options...
pietbez Posted January 16, 2009 Author Share Posted January 16, 2009 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; ?> Quote Link to comment https://forums.phpfreaks.com/topic/140963-solved-flash-messing-with-php/#findComment-738371 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.