Jump to content

blueman378

Members
  • Posts

    888
  • Joined

  • Last visited

    Never

Everything posted by blueman378

  1. hi guys, i have a really long include eg, include "folder1/folder2/folder3/folder4/folder5/folder6/file.php"; and i want to make it so i can just call the include from a variable, eg type echo $file; and it will run the include at the moment i have $file = "include "folder1/folder2/folder3/folder4/folder5/folder6/file.php";"; it simply outputs include "folder1/folder2/folder3/folder4/folder5/folder6/file.php"; thanks
  2. lol well that was simple, i managed it myself <?php include("include/session.php"); $game = $_GET['game']; global $database; $q = "SELECT * FROM " . Games . " WHERE gName = '$game' ORDER BY `gName` ASC "; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if( $num_rows == 0 ){ return 'Game Not Found!'; } while( $row = mysql_fetch_assoc($result) ) { echo $row[gName]; echo $row[gDescription]; echo $row[gSwfFile]; echo $row[gThumb]; } ?>
  3. um, yeah the page originally was just so i could get an idea of how it works, but um could u give me an example of what u mean? thanks, matt uve been a great help
  4. ok well i can use that for the game name, but how do i go about the description ect? cause it cant seem to access them
  5. <?php include("include/session.php"); ?><html> <head></head> <body> <?php $game = $_GET['game']; function GetInfo($game){ global $database; $q = "SELECT * FROM " . Games . " WHERE gName = '$game' ORDER BY `gName` ASC "; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if( $num_rows == 0 ){ return 'Database table empty'; } /* Display table contents */ $content = "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\"> <tr> <td><b>Game Name</b></td> <td><b>Description</b></td> <td><b>Swf File</b></td> <td><b>Thumb File</b></td> </tr> "; while( $row = mysql_fetch_assoc($result) ) { $content .= "<tr> <td>$row[gName]</td> <td>$row[gDescription]</td> <td>$row[gSwfFile]</td> <td>$row[gThumb]</td> </tr> "; } $content .= "</table><br>\n"; return $content; } // You can echo GetInfo($game); ?> <br> <h1>GAME NAME HERE</h1> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="300" id="movie" align="center"> <param name="movie" value="games_ins/SWF FILE HERE"> <embed src="games_ins/SWF FILE HERE" quality="high" width="400" height="300" name="movie" align="center" type="application/x-shockwave-flash" plug inspage="http://www.macromedia.com/go/getflashplayer"> </object> DESCRIPTION HERE </body></html> its the stuff it CAPS and while ur here, if i decide to use a form i just change it to POST right?
  6. ok thanks mate, one last thing, how would i echo eg the game name
  7. wait so all the problem was was that the $game variable was not being included in that function?
  8. SQL: SELECT * FROM Games WHERE gName = '' ORDER BY `gName` ASC so this isnt reading the $game variable?
  9. i get Array ( [game] => 3D Space Skimmer )
  10. sorry (its 3 in the morn) i dnt quite get what u mean, sut save it and run it as test.php?game=3D Space Skimmer ?
  11. tried get and still get the same problem
  12. hmm i guess this must be where im going wrong, at the moment im simply using a link not a form
  13. ok well lets say (simply because the only game i have in my database is 3D Space Skimmer) the url is showgame.php?game=3D Space Skimmer the code i need is something like <?php include("include/session.php"); $game = $_POST['game']; $game = urldecode($game); function GetInfo(){ global $database; $q = "SELECT * FROM " . Games . " WHERE gName = '$game' ORDER BY `gName` ASC "; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if( $num_rows == 0 ){ return 'Database table empty'; } /* Display table contents */ $content = "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\"> <tr> <td><b>Game Name</b></td> <td><b>Description</b></td> <td><b>Swf File</b></td> <td><b>Thumb File</b></td> </tr> "; while( $row = mysql_fetch_assoc($result) ) { $content .= "<tr> <td>$row[gName]</td> <td>$row[gDescription]</td> <td>$row[gSwfFile]</td> <td>$row[gThumb]</td> </tr> "; } $content .= "</table><br>\n"; return $content; } // You can echo GetInfo(); ?> but i always get Database table empty thanks
  14. <?php include("include/session.php"); function GetInfo(){ global $database; $q = "SELECT * FROM " . Games . " WHERE gName = '3D Space Skimmer' ORDER BY `gName` ASC "; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if( $num_rows == 0 ){ return 'Database table empty'; } /* Display table contents */ $content = "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\"> <tr> <td><b>Game Name</b></td> <td><b>Description</b></td> <td><b>Swf File</b></td> <td><b>Thumb File</b></td> </tr> "; while( $row = mysql_fetch_assoc($result) ) { $content .= "<tr> <td>$row[gName]</td> <td>$row[gDescription]</td> <td>$row[gSwfFile]</td> <td>$row[gThumb]</td> </tr> "; } $content .= "</table><br>\n"; return $content; } // You can echo GetInfo(); ?> worked aswell thanks, but any ideas on the variable question about where? i tried $_GET['game'] and $_POST['game'] but get table empty, also i need a script to remove the %20 and replace it with a space, any ideas? thanks 4 all ur help
  15. <?php include("include/session.php"); function GetInfo(){ global $database; $q = "SELECT * FROM " . Games . " WHERE gName = '3D Space Skimmer' ORDER BY `gName` ASC "; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if( $num_rows == 0 ){ return 'Database table empty'; } /* Display table contents */ $content = "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\"> <tr> <td><b>Game Name</b></td> <td><b>Description</b></td> <td><b>Swf File</b></td> <td><b>Thumb File</b></td> </tr> "; while( $row = mysql_fetch_assoc($result) ) { $content .= "<tr> <td>$row['gName']</td> <td>$row['gDescription']</td> <td>$row['gSwfFile']</td> <td>$row['gthumb']</td> </tr> "; } $content .= "</table><br>\n"; return $content; } // You can echo GetInfo(); ?> i tried using that but get: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\showgame.php on line 27 any ideas, n thanks so much 4 all ur help,
  16. ah got it, <?php include("include/session.php"); function GetInfo(){ global $database; $q = "SELECT * " ."FROM ".Games." WHERE gName='3D Space Skimmer' ORDER BY `gName` ASC"; $result = $database->query($q) or die("Error: " . mysql_error()); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if(!$result || ($num_rows < 0)){ echo "Error displaying info"; return; } if($num_rows == 0){ echo "Database table empty"; return; } /* Display table contents */ echo "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"; echo "<tr><td><b>Game Name</b></td><td><b>Description</b></td><td><b>Swf File</b></td><td><b>Thumb File</b></td></tr>\n"; for($i=0; $i<$num_rows; $i++){ $name = mysql_result($result,$i,"gName"); $desc = mysql_result($result,$i,"gDescription"); $swf = mysql_result($result,$i,"gSwfFile"); $thumb = mysql_result($result,$i,"gthumb"); echo "<tr><td>$name</td><td>$desc</td><td>$swf</td><td>$thumb</td></tr>\n"; } echo "</table><br>\n"; } ?> <? GetInfo(); ?> so now i need to modify this code because the url for the page will be showgame.php?game=Game name so i need the where tag to be a variable to get the name from the url tag cheers
  17. hi i fixed the errors, so heres my new code: <?php include("include/session.php"); function GetInfo(){ global $database; $q = "SELECT * " ."FROM ".Games." WHERE gName='3D Space Skimmer' ORDER BY `gName` ASC"; $result = $database->query($q) or die("Error: " . mysql_error()); if(mysql_num_rows($result) == 0){ echo("Nothing to Display!"); } /* Display table contents */ echo "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"; echo "<tr><td><b>Game Name</b></td><td><b>Description</b></td><td><b>Swf File</b></td><td><b>Thumb File</b></td></tr>\n"; for($i=0; $i<$num_rows; $i++){ $name = mysql_result($result,$i,"gName"); $desc = mysql_result($result,$i,"gDescription"); $swf = mysql_result($result,$i,"gSwfFile"); $thumb = mysql_result($result,$i,"thumb"); echo "<tr><td>$name</td><td>$desc</td><td>$swf</td><td>$thumb</td></tr>\n"; } echo "</table><br>\n"; } ?> <? GetInfo(); ?> but now when i run it i get ______________________________________ |Game name|Description|Swf File|Thumb File| and thats it no data under it, i know it is searching it because if i change the where statment to one thats not true it says nothing to display, cheers
  18. thanks but i still get the exact same error, any more ideas?
  19. hi guys i have this code: <?php include("include/session.php"); function GetInfo(){ global $database; $sql = "SELECT * FROM 'games.games' WHERE gName='23D Space Skimmer' ORDER BY `gName` ASC'"; $result = $database->query($q) or die("Error: " . mysql_error()); if(mysql_num_rows($result) == 0){ echo("Nothing to Display!"); } /* Display table contents */ echo "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"; echo "<tr><td><b>Game Name</b></td><td><b>Description</b></td><td><b>Swf File</b></td><td><b>Thumb File</b></td></tr>\n"; for($i=0; $i<$num_rows; $i++){ $name = $row["gName"]; $desc = $row["gDescription"]; $swf = $row["gSwfFile"]; $thumb = $row["gThumb"]; echo "<tr><td>mysql_result($result,$i,'gName')</td><td>$udesc</td><td>$swf</td><td>$thumb</td></tr>\n"; } echo "</table><br>\n"; } ?> <? GetInfo(); ?> which is meant to get the data from the database and display it in a form (db connection done in session.php but i get this error: "Error: Query was empty" my table looks like this: thanks 4 ur help
  20. hi there, can someone please fix this: mysql_query("INSERT INTO `games`.`games` (gName, gDescription, gSwfFile, gThumb) VALUES ('$_POST["name"]', '$_POST["desc"]', '$_POST["gamefiles"]', '$_POST["thumbfiles"]')"); its the order of the "" and '' thats causing probs, so could u please fixit and tell me why each one is like that, :Note the fact i actually wanna learn why/how not just get it fixed, cheers
  21. ok heres the code <?php /** * User not an administrator, redirect to main page * automatically. */ if(!$session->isAdmin()){ ?> <center><font color="red"><h3><i>ERROR</i>: Access Denied</h3></font> Back to [<a href="../index.php">Main Page</a>]</center><?php } else{ ?> <center> <?php if (!isset($_POST['submit'])) { ?> <form method="post" action="<?php echo $PHP_SELF;?>"> Select a file to edit:<br /> <select name="file"> <option value="../links.txt">Site Links</option> <option value="../mainintro.txt">Main Intro</option> <option value="adminlinks.txt">Admin Links</option> </select> <input type="submit" value="submit" name="submit"><br /> </form> <?php } else { $loadcontent = $_POST["file"];; $fp = @fopen($loadcontent, "r"); $loadcontent = fread($fp, filesize($loadcontent)); $loadcontent = htmlspecialchars($loadcontent); fclose($fp); ?> <form method="post" action="<?php echo $PHP_SELF;?>"> Select a file to edit:<br /> <select name="file"> <option value="../links.txt">Site Links</option> <option value="../mainintro.txt">Main Intro</option> <option value="adminlinks.txt">Admin Links</option> </select> <input type="submit" value="submit" name="submit"><br /> </form> <form method=post action="<?=$_SERVER['PHP_SELF']?>"> <textarea name="savecontent" cols="70" rows="30"><?=$loadcontent?></textarea> <br> <input type="submit" name="save_file" value="Save"> </form> <?php if($save_file) { $savecontent = stripslashes($savecontent); $fp = @fopen($loadcontent, "w"); if ($fp) { fwrite($fp, $savecontent); fclose($fp); } } } ?> <?php } ?> now it opens the files alright, however the problem is that it doesnt save to the file when you click save any ideas why?
  22. actually thats a very good point it just wastes time, thanks, not sure how but this is working now, thanks madtechie and ken just a quick question why doesn't this forum have a thanks system?
  23. well that worked, so does this page (it was originally the registration page which funny enough is made yup from the index page) <? include("../include/session.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Welcome to HCB games <?php echo date('l dS \of F Y h:i:s A'); ?></title> <meta name="keywords" content="play free games online flash games flash arcade swf cool movies cartoons"> <meta name="robots" content="index, follow"> <meta name="description" content="Play free flash games online, watch cool movies and cartoons!"> <link rel="stylesheet" type="text/css" href="../index.css" media="all"> </head> <body> <div id="wrapper" style="width: 92%;" align="center"> <div id="header"> <div class="heada"> <div class="headc"> <table border="0" cellspacing="0"> <tbody><tr> <td><a linkindex="0" href="http://localhost/" title=""><img class="logo" src="../images/logo.png" alt="Game Script" border="0" height="84" hspace="10" width="284"></a></td> <td rowspan="2" valign="top"> <div class="topmenu"> <a linkindex="1" href="http://localhost/page-memberlist" class="topmenu">Memberlist</a> | <a linkindex="2" href="http://localhost/page-about_us" class="topmenu">About Us</a> | <a linkindex="3" href="http://localhost/page-help" class="topmenu">Help</a> | <a href="mailto:" class="topmenu">Contact Us</a> | <a class="topmenu" href="mailto:?subject=Play%20Free%20Games%20at%20HCB%20Games%21">Tell a Friend</a> | <a class="topmenu" href="http://localhost/">Bookmark Us</a> </div> <div class="quickgame"> Quick Play: <select id="games" name="games" onchange="switchme()"> <option value="">--select a game--</option> </select> <img src="../images/px.gif" align="absmiddle" height="23" width="4"></div> </td> </tr> <tr class="navigator"> <td class="menu"><ul> <li><span><img src="../images/px.gif" align="absmiddle" height="23" width="40"></span></li> <li class="sel"><span>Games</span></li><li class="unsel"><a linkindex="4" href="http://localhost/index.php?mcid=2">Movies</a></li> </ul></td> </tr> </tbody></table> </div> </div> </div> <div id="submenu"> <div class="submenua"> <div class="submenuc"> <div> <a linkindex="5" href="http://localhost/cat-1-p0.html" class="submenu">Action / Adventure</a> | <a linkindex="6" href="http://localhost/cat-8-p0.html" class="submenu">Beat em up</a> | <a linkindex="7" href="http://localhost/cat-5-p0.html" class="submenu">Other</a> | <a linkindex="8" href="http://localhost/cat-3-p0.html" class="submenu">Puzzle</a> | <a linkindex="9" href="http://localhost/cat-6-p0.html" class="submenu">Racing</a> | <a linkindex="10" href="http://localhost/cat-7-p0.html" class="submenu">Retro</a> | <a linkindex="11" href="http://localhost/cat-4-p0.html" class="submenu">Shoot 'em up</a> | <a linkindex="12" href="http://localhost/cat-2-p0.html" class="submenu">Sports</a></div> </div> </div> </div> <div id="submenushadow"> <div class="sushada"> <div class="sushadc"> </div> </div> </div> <div class="wrappera"> <div class="wrapperc"> <div id="content"> <div class="wideboxs adsbox"><div class="boxs_head adsbox"><span></span></div><div class="boxs_body adsbox"><p align="center"> </p> </div></div> <table class="content" border="0" cellspacing="5"> <tbody><tr><td class="sidecol" width="1"><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Top Games</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><a linkindex="13" href="http://localhost/play-4017-_Heli_Strike.html"> Heli Strike</a></td><td class="topgamerowalt" align="right">278</td></tr> <tr><td class="topgamerow"><a linkindex="14" href="http://localhost/play-3997-_Gold_Miner.html"> Gold Miner</a></td><td class="topgamerow" align="right">158</td></tr> <tr><td class="topgamerowalt"><a linkindex="15" href="http://localhost/play-3637-Superbike__GP.html">Superbike GP</a></td><td class="topgamerowalt" align="right">100</td></tr> <tr><td class="topgamerow"><a linkindex="16" href="http://localhost/play-3993-_Dragonball_Z_Pong.html"> Dragonball Z Pong</a></td><td class="topgamerow" align="right">72</td></tr> <tr><td class="topgamerowalt"><a linkindex="17" href="http://localhost/play-3998-_12_Puzzle.html"> 12 Puzzle</a></td><td class="topgamerowalt" align="right">71</td></tr> <tr><td class="topgamerow"><a linkindex="18" href="http://localhost/play-14-_A.L.I.A.S._3.html"> A.L.I.A.S. 3</a></td><td class="topgamerow" align="right">62</td></tr> <tr><td class="topgamerowalt"><a linkindex="19" href="http://localhost/play-3999-_12_Holes_of_X-Mas.html"> 12 Holes of X-Mas</a></td><td class="topgamerowalt" align="right">57</td></tr> <tr><td class="topgamerow"><a linkindex="20" href="http://localhost/play-375-_Life_Buoys.html"> Life Buoys</a></td><td class="topgamerow" align="right">57</td></tr> <tr><td class="topgamerowalt"><a linkindex="21" href="http://localhost/play-814-_Pretty_Girl.html"> Pretty Girl</a></td><td class="topgamerowalt" align="right">54</td></tr> <tr><td class="topgamerow"><a linkindex="22" href="http://localhost/play-1504-__Office_Paintball.html"> Office Paintball</a></td><td class="topgamerow" align="right">54</td></tr> <tr><td class="topgamerowalt"><a linkindex="23" href="http://localhost/play-3982-_Shoot_the_Turkeys.html"> Shoot the Turkeys</a></td><td class="topgamerowalt" align="right">50</td></tr> <tr><td class="topgamerow"><a linkindex="24" href="http://localhost/play-3509-_Sexy__Slots.html"> Sexy Slots</a></td><td class="topgamerow" align="right">47</td></tr> <tr><td class="topgamerowalt"><a linkindex="25" href="http://localhost/play-3930-_Contra.html"> Contra</a></td><td class="topgamerowalt" align="right">43</td></tr> <tr><td class="topgamerow"><a linkindex="26" href="http://localhost/play-3508-_G__Ball.html"> G Ball</a></td><td class="topgamerow" align="right">42</td></tr> <tr><td class="topgamerowalt"><a linkindex="27" href="http://localhost/play-323-_Hovercraft.html"> Hovercraft</a></td><td class="topgamerowalt" align="right">41</td></tr> <tr><td class="topgamerow"><a linkindex="28" href="http://localhost/play-3914-_Halo.html"> Halo</a></td><td class="topgamerow" align="right">41</td></tr> <tr><td class="topgamerowalt"><a linkindex="29" href="http://localhost/play-3901-_Mario_Star_Catcher_2.html"> Mario Star Catcher 2</a></td><td class="topgamerowalt" align="right">39</td></tr> <tr><td class="topgamerow"><a linkindex="30" href="http://localhost/play-504-_______Red_Beard.html"> Red Beard</a></td><td class="topgamerow" align="right">37</td></tr> <tr><td class="topgamerowalt"><a linkindex="31" href="http://localhost/play-610-_5_Miles_to_Go.html"> 5 Miles to Go</a></td><td class="topgamerowalt" align="right">37</td></tr> <tr><td class="topgamerow"><a linkindex="32" href="http://localhost/play-1445-_Flash_Pong.html"> Flash Pong</a></td><td class="topgamerow" align="right">36</td></tr> <tr><td class="topgamerowalt"><a linkindex="33" href="http://localhost/play-4033-GameTeam_Drop_Blocks.html">GameTeam Drop Blocks</a></td><td class="topgamerowalt" align="right">36</td></tr> <tr><td class="topgamerow"><a linkindex="34" href="http://localhost/play-2367-___World_Cup_Soccer_Tournament.html"> World Cup Soccer Tournament</a></td><td class="topgamerow" align="right">35</td></tr> <tr><td class="topgamerowalt"><a linkindex="35" href="http://localhost/play-333-_Insect_Hunter_2_:__Frozen.html"> Insect Hunter 2 : Frozen</a></td><td class="topgamerowalt" align="right">33</td></tr> <tr><td class="topgamerow"><a linkindex="36" href="http://localhost/play-2617-___Pet_Puzzle.html"> Pet Puzzle</a></td><td class="topgamerow" align="right">32</td></tr> <tr><td class="topgamerowalt"><a linkindex="37" href="http://localhost/play-1524-Street_Cred.html">Street Cred</a></td><td class="topgamerowalt" align="right">31</td></tr> <tr><td class="topgamerow"><a linkindex="38" href="http://localhost/play-2800-Booby__Blast.html">Booby Blast</a></td><td class="topgamerow" align="right">30</td></tr> <tr><td class="topgamerowalt"><a linkindex="39" href="http://localhost/play-3884-_Kerry_Bush_Bash.html"> Kerry Bush Bash</a></td><td class="topgamerowalt" align="right">30</td></tr> <tr><td class="topgamerow"><a linkindex="40" href="http://localhost/play-4006-_3D_Worm.html"> 3D Worm</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="41" href="http://localhost/play-286-_Ghetto_Chase.html"> Ghetto Chase</a></td><td class="topgamerowalt" align="right">27</td></tr> <tr><td class="topgamerow"><a linkindex="42" href="http://localhost/play-327-_Hybrid_Fighter.html"> Hybrid Fighter</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="43" href="http://localhost/play-2296-____AnimeChickGame.html"> AnimeChickGame</a></td><td class="topgamerowalt" align="right">27</td></tr> <tr><td class="topgamerow"><a linkindex="44" href="http://localhost/play-4000-_12_Many.html"> 12 Many</a></td><td class="topgamerow" align="right">26</td></tr> <tr><td class="topgamerowalt"><a linkindex="45" href="http://localhost/play-4009-_Crazy_Police_Dogs.html"> Crazy Police Dogs</a></td><td class="topgamerowalt" align="right">26</td></tr> <tr><td class="topgamerow"><a linkindex="46" href="http://localhost/play-1432-_Aspen.html"> Aspen</a></td><td class="topgamerow" align="right">24</td></tr> <tr><td class="topgamerowalt"><a linkindex="47" href="http://localhost/play-3128-_Bomb__Defusal.html"> Bomb Defusal</a></td><td class="topgamerowalt" align="right">23</td></tr> </tbody></table> <a linkindex="48" class="link" href="http://localhost/page-top100">Top 100 >>></a> </div></div><div class="boxs greenbox"><div class="boxs_head greenbox"><h2>Top Rated</h2></div><div class="boxs_body greenbox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><span class="toprate">5.0</span></td><td class="topgamerowalt"><a linkindex="49" href="http://localhost/play-3637-Superbike__GP.html">Superbike GP</a></td></tr><tr><td class="topgamerow"><span class="toprate">5.0</span></td><td class="topgamerow"><a linkindex="50" href="http://localhost/play-3998-_12_Puzzle.html"> 12 Puzzle</a></td></tr> </tbody></table> </div></div><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Statistics</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="0"> <tbody><tr> <td class="topgamerow"><b>Total Members</b></td><td class="topgamerow"><?php echo "".$database->getNumMembers()."" ?></td></tr> <tr><td class="topgamerowalt"><b>Users Online</b></td><td class="topgamerowalt"><?php echo "$database->num_active_users"; ?></td></tr> <tr> <td class="topgamerow"><b>Guests Online</b></td><td class="topgamerow"><?php echo "$database->num_active_guests"; ?></td></tr> </tbody></table> </div></div><div class="boxs greenbox"><div class="boxs_head greenbox"><h2>Affiliate Sites</h2></div><div class="boxs_body greenbox"><p></p><table class="topgamescashe" cellspacing="1"> </table> <?php include("../links.txt"); ?> </div></div></td><td class="centercol"><div class="cntttl"> <div class="cntbox"> <div class="cntbox_head"><div> <h1>HCB Games admin center</h1> </div></div> <div class="cntbox_cnt"> <p>content here </div> <div class="cntbox_foot"><div><div></div></div></div> </div> </div> </td> <td class="sidecol" width="1"><div class="boxs bluebox"><div class="boxs_head bluebox"><h2>Latest Games</h2></div><div class="boxs_body bluebox"><p></p><table class="topgamescashe" cellspacing="1"> <tbody><tr><td class="topgamerowalt"><a linkindex="162" href="http://localhost/play-4026-Captain_Jack_Adventure.html">Captain Jack Adventure</a></td><td class="topgamerowalt" align="right">5</td></tr> <tr><td class="topgamerow"><a linkindex="163" href="http://localhost/play-4025-HolyWar:_Invasion.html">HolyWar: Invasion</a></td><td class="topgamerow" align="right">3</td></tr> <tr><td class="topgamerowalt"><a linkindex="164" href="http://localhost/play-4024-Sky_Fire.html">Sky Fire</a></td><td class="topgamerowalt" align="right">7</td></tr> <tr><td class="topgamerow"><a linkindex="165" href="http://localhost/play-4023-Naval_Strike.html">Naval Strike</a></td><td class="topgamerow" align="right">3</td></tr> <tr><td class="topgamerowalt"><a linkindex="166" href="http://localhost/play-4022-Onslaught.html">Onslaught</a></td><td class="topgamerowalt" align="right">3</td></tr> <tr><td class="topgamerow"><a linkindex="167" href="http://localhost/play-4021-KGB_Hunter.html">KGB Hunter</a></td><td class="topgamerow" align="right">5</td></tr> <tr><td class="topgamerowalt"><a linkindex="168" href="http://localhost/play-4020-Naval_Fighter.html">Naval Fighter</a></td><td class="topgamerowalt" align="right">10</td></tr> <tr><td class="topgamerow"><a linkindex="169" href="http://localhost/play-4019-Mad_Truckers.html">Mad Truckers</a></td><td class="topgamerow" align="right">9</td></tr> <tr><td class="topgamerowalt"><a linkindex="170" href="http://localhost/play-4018-Crusader_Tank.html">Crusader Tank</a></td><td class="topgamerowalt" align="right">8</td></tr> <tr><td class="topgamerow"><a linkindex="171" href="http://localhost/play-4016-_Swimming_With_No_Arms.html"> Swimming With No Arms</a></td><td class="topgamerow" align="right">0</td></tr> <tr><td class="topgamerowalt"><a linkindex="172" href="http://localhost/play-4015-_Hot_Chick_With_a_Gun.html"> Hot Chick With a Gun</a></td><td class="topgamerowalt" align="right">0</td></tr> <tr><td class="topgamerow"><a linkindex="173" href="http://localhost/play-4010-_Juggling_During_Dance_Dance_Revolution.html"> Juggling During Dance Da</a></td><td class="topgamerow" align="right">13</td></tr> <tr><td class="topgamerowalt"><a linkindex="174" href="http://localhost/play-4009-_Crazy_Police_Dogs.html"> Crazy Police Dogs</a></td><td class="topgamerowalt" align="right">26</td></tr> <tr><td class="topgamerow"><a linkindex="175" href="http://localhost/play-4008-_Corey_Martinez_BMX.html"> Corey Martinez BMX</a></td><td class="topgamerow" align="right">18</td></tr> <tr><td class="topgamerowalt"><a linkindex="176" href="http://localhost/play-4007-_Agassi_vs_Federer_at_the_Burj_al_Arab_Hotel.html"> Agassi vs Federer at the</a></td><td class="topgamerowalt" align="right">5</td></tr> <tr><td class="topgamerow"><a linkindex="177" href="http://localhost/play-4006-_3D_Worm.html"> 3D Worm</a></td><td class="topgamerow" align="right">27</td></tr> <tr><td class="topgamerowalt"><a linkindex="178" href="http://localhost/play-4005-_3D_Space_Skimmer.html"> 3D Space Skimmer</a></td><td class="topgamerowalt" align="right">10</td></tr> <tr><td class="topgamerow"><a linkindex="179" href="http://localhost/play-4004-_3D_MAZE.html"> 3D MAZE</a></td><td class="topgamerow" align="right">14</td></tr> <tr><td class="topgamerowalt"><a linkindex="180" href="http://localhost/play-4003-3_Foot__Ninja_II.html">3 Foot Ninja II</a></td><td class="topgamerowalt" align="right">12</td></tr> <tr><td class="topgamerow"><a linkindex="181" href="http://localhost/play-4002-_3__Foot_Ninja.html"> 3 Foot Ninja</a></td><td class="topgamerow" align="right">15</td></tr> </tbody></table> <a linkindex="182" class="link" href="http://localhost/page-last100">Last 100 >>></a> </div></div> <div class="boxs whitebox"><div class="boxs_head whitebox"><span></span></div><div class="boxs_body whitebox"><p> </p></div></div></td> </tr> </tbody></table> <div class="wideboxs adsbox"><div class="boxs_head adsbox"><span></span></div><div class="boxs_body adsbox"><p align="center"> </p> </div></div></div> <br> </div> </div> <div id="footer"> <div class="footera"> <div class="footerc"> <p>All Games Copyright To Their Respective Owners. All Rights Reserved.</p> </div> </div> </div> </div><!-- end WRAPPER --> <br> <div style="position: absolute; width: 28px; height: 28px; z-index: 1000; display: none;"></div><img style="position: absolute; width: 35px; height: 29px; z-index: 1000; display: none;" src="chrome://piclens/content/launch.png"></body> </html> and yet that works perfectly, see any reason why this one might and the other one wouldnt?
  24. hmm that ust made the error appear twice, its very strange. i might point out that i have other pages pointing to the session page and it does not have this error acctually now its Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\admin\index.php:1) in C:\wamp\www\include\session.php on line 46 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\admin\index.php:1) in C:\wamp\www\include\session.php on line 46
  25. hmm i removed it but it did absolutely nothing, but thanks for your help, any other ideas?
×
×
  • 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.