Search the Community
Showing results for tags 'swf'.
-
Hi. I am having trouble embedding a swf file from a database on a php page. I know how to embed a swf file using just php with the help of swfobject.js but I am having trouble being able to actually show the file from a db. I am not storing the actual file on the database but the path to the flash file (eg games/flashgame1.swf) I am properly connected to the db so there is no problem there. The table is called games and has two columns for now: id | path Here is my code: <?php require_once('config.php'); if (!session_id()) session_start(); ?> <!DOCTYPE html> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type"> <meta name="author" content="Onyx"> <link rel="stylesheet" type="text/css" href="<?php echo HTTP_STYLE;?>layout.css" /> <link href="<?php echo HTTP_IMAGES;?>favicon.ico" rel="icon" type="image/x-icon" /> </head> <body> <div id="wrapper2"> <div id="container"> <?php $result = mysql_query("SELECT * FROM games"); while($row = mysql_fetch_array($result)) { $path = $row['1']; $id = $row['0']; $width = "546"; $height = "431"; $version = "9.0.0"; } echo "<script type=text/javascript src=swfobject.js></script>"; echo "<script type=text/javascript>"; echo "swfobject.embedSWF('$path','$id', '$width', '$height', '$version')";echo "</script>"; ?> </div> </div> </body> </html> Any ideas what i am doing wrong?
-
Hello freaks im new here and me and a bud of mine are trying to make a plugin for his site, im not going to post the link because im not sure if ill get in trouble for advertising, but what we are trying to do is.. Make a section of his website able to play games (Swf's) Through a proxy system called glype and what we want is like youtube kinda. if you run youtube through a proxy, it will allow youtube videos to play through a different player called (FLV Player) And what we are trying to do is link games from the website to allow it to play in a seperate player while at school. because school blocks the armoredgames.com so we need to find a way to play it through a proxy. any help? thanks guys