...

View Full Version : Php Include problem and more



themaraudersmap
01-12-2006, 05:17 PM
I have two questions, one should be easy...the other...ehh

1.I am using a content management system call phpwcms. I have a poll in my layout, and it wont show, all it shows is

poll_process("newest"); ?>

I dont know why, its really weird, tis like not reading the last part of the full code...you can veiw an example...(poll error is in bottom right hand corner)

http://www.themaraudersmap.com/contentmanagement/index.php?id=53,11,0,0,1,0

2. Now this one is a bit tougher. I have my content management. What I want to do is be able to pull info from certain catagories that I have...

My site's cms is set up like this

Games
-Fighter
-Game Review Title
-Game Review Title
-First person shooter
-Game Review title
-Game Review title

and it goes on like that for different genres, of course "game review title" being a review for a certain game. I want to pull the latest article from each genre, and have it set up in a page called, latest reviews. Now I have a friend who did this, but hes a php god, and has no time at the moment to help out. Could someone tell me how to do this...and im far from knowledges with php and sql...he said he made his own SQL and php code to pull from the database directly

Not sure if that helps, but I figured it would.

Any help would be highly appreciated.

Thank you,
-Justin

themaraudersmap
01-13-2006, 01:27 AM
Any help, not trying to be a pain, just frusterated with these problems.

firepages
01-13-2006, 02:43 AM
you have no answers since its not an easy one... I mean the answer probably is simple but since we have no idea of how the pages were built we are guessing , e.g. with problem 1 it should not be possible to see PHP code at all on your page & since the rest of the page seems to work then it must be a matter of how that php command is getting inserted.

we would need to see the source of index.php to have a clue as to why this is happening.

2) would need to know the database structure to help.

themaraudersmap
01-13-2006, 09:37 AM
Damn, well heres the source code for when the php include screws up

the php include is at the bottom, if you go to the page

http://www.themaraudersmap.com/contentmanagement/index.php?id=53,11,0,0,1,0

and view the source thatway, you'll notice that the php include is weirded out, the part that's showing is a different color

ITs cool about the other question, I can try and figure it out on my own ,but this one is a *****...probobly so simple, but overlooking it

(have to post in a new thread, to long of a post)

Anyways

-Thanks.

themaraudersmap
01-13-2006, 09:37 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>The Core : Xbox gaming at its finest! | First-person Shooter | Condemned : Criminal Origins</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

//-->
</script>

<script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="phpwcms_template/inc_css/frontend.css" />
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">

<style>
a.one:link { color: #CAC7C7;
text-decoration: none}

a.one:visited { text-decoration: none;
color: #CAC7C7}

a.one:hover { text-decoration: none;
color: #ffffff}

</style>
<meta name="description" content="First-person shooter genre games">
<meta name="keywords" content="Condemned, Criminal, Origins, Condemned : Criminal Origins, Ethan Thomas, Ethan, Thomas, Rosa, First-person shooter, Sci-fi, horror, Xbox, Xbox 360, Forensic, Science, Forensic Science">

</head>

<body text="#000000" link="#FF9900" vlink="#FF9900" alink="#FF9900" style="margin:0px 0px 0px 0px;">
<table border="0" cellspacing="0" cellpadding="0" width="720">
<tr>
<td colspan="5" style="height:580px;" ><!-- ImageReady Slices (final.psd) -->
<table id="Table_01" width="720" height="580" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<img src="http://www.themaraudersmap.com/images/index_01.gif" width="720" height="155" border="0" alt="" usemap="#index_01_Map"></td>

</tr>
<tr>
<td>
<img src="http://www.themaraudersmap.com/images/index_02.gif" width="176" height="300" alt=""></td>
<td>
<img src="http://www.themaraudersmap.com/images/index_03.gif" width="544" height="300" alt=""></td>
</tr>
<tr>
<td width="720" height="125" colspan="2">

<img src="http://www.themaraudersmap.com/images/spacer.gif" width="720" height="125" alt=""></td>
</tr>
</table>
<map name="index_01_Map">
<area shape="rect" alt="" coords="161,59,415,103" href="http://www.themaraudersmap.com/index.php">
</map>
<!-- End ImageReady Slices --></td>
</tr>
<tr>
<td valign="top" width="141"><div style="position:absolute; width:88; height:30px; z-index:9; left: 0px; top: 210px;">

<TABLE bgcolor="000000" border="0" bordercolor="000000" cellpadding="1" cellspacing="1">

<tr><td width="88"></td></tr>
<tr>

<td>
<a class=one href="http://www.themaraudersmap.com/">
<font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Home</a><BR>

<a class=one href="http://forums.themaraudersmap.com">Forums</a><BR>
<a class=one href="http://www.themaraudersmap.com/aboutus.php">About Us</a><BR>
<a class=one href="http://www.themaraudersmap.com/jobs.php">Jobs</a><BR>

<a class=one href="http://www.themaraudersmap.com/feedback.php">Feedback</a><BR>
<a class=one href="http://www.themaraudersmap.com/affiliates.php">Affiliates</a><BR>

<a class=one href="http://www.themaraudersmap.com/faq.php">FAQ</a><BR>
</td>
</tr>
</table>
</div>

<div style="position:absolute; width:140; height:580px; z-index:10; left: 0px; top: 360px;">

<TABLE bgcolor="000000" border="0" bordercolor="000000" cellpadding="0" cellspacing="0">


<Tr><Td width="140"></td></tr>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="games.php"><img src="http://www.themaraudersmap.com/images/leftnav/games.jpg" border="0"><br>

</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="newreleases.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">New Releases</a>


</td>

</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="previews.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Previews</a>


</td>
</tr>
<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="reviews.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Reveiws</a>


</td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="upcomming.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Upcomming Games</a>


</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="harware.php"><img src="http://www.themaraudersmap.com/images/leftnav/hardware.jpg" border="0"><br>

</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="accessories.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Accessories</a>


</td>
</tr>

<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="hardwarereviews.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Reviews</a>


</td>
</tr>
<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="harwarepreviews.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Previews</a>


</td>

</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="xbox360faq.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Xbox 360 FAQ</a>
</td>
</tr>



<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="harware.php"><img src="http://www.themaraudersmap.com/images/leftnav/media.jpg" border="0"><br>

</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="movies.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Movies</a>


</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="comedyphoto.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Comedy Cartoons</a>


</td>
</tr>
<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="gamephotos.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">In Game Screens</a>


</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="boxpictures.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Game Cover Photos</a>
</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="hardwarephotos.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Hardware Photos</a>
</td>
</tr>

<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="downloads.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Downloads</a>
</td>
</tr>





<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="Community.php"><img src="http://www.themaraudersmap.com/images/leftnav/community.jpg" border="0"><br>

</td>
</tr>


<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="/forums/index.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Forums</a>


</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="Editorials.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">Editorials</a>


</td>
</tr>
<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="editorials.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;ext-decoration: none;">&nbsp;&nbsp;&nbsp;-Comming Soon</a>


</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="editorials.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">&nbsp;&nbsp;&nbsp;-Comming Soon</a>
</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="editorials.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">&nbsp;&nbsp;&nbsp;-Comming Soon</a>
</td>
</tr>

<tr>

<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="http://www.firstpenguin.net"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">First Penguin</a>
</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#0A2E00';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="http://www.firstpenguin.net/home/phpbb/index.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;">First Penguin Forums</a>
</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><a
class="one" href="gamerspotlight/index.php"><font style="font-family: Verdana, Tahoma, Arial, sans-serif;font-weight:normal;font-size:12px;letter-spacing:0px;text-decoration: none;"><center>_______________</center></a>

</td>
</tr>


<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000">
<a href="gamerspotlight/1.php"><center>
<img src="http://www.themaraudersmap.com/images/spotlight/g1.jpg" border="0"></center></a>
</td>
</tr>

<tr>
<td onmouseover="this.style.backgroundColor='#000000';"
onmouseout="this.style.background='#000000';" bgcolor="#000000"><img src="http://www.themaraudersmap.com/images/leftnav/bottom.jpg" border="0"><br></font>

</td>
</tr>
</table>
<br><br>
<center>
<a href="spotlight/1.php">
<img src="http://www.themaraudersmap.com/images/spotlight/1.jpg" border="0"></a>


</center>
</div></td>
<td valign="top" width="1"><img src="img/leer.gif" width="1" height="1" alt="" /></td>
<td valign="top" width="418"><div style="position:absolute; width:3; height:1px; z-index:1; left: 185px; top: 185px;">
<img src="http://www.themaraudersmap.com/word.jpg">
</div>

<div style="position:absolute; width:418; height:580px; z-index:1; left: 152px; top: 290px;">
<a name="jump11"></a><h3>Condemned : Criminal Origins</h3><h4>Writen by : Justin</h4><div class="articleText"><div style="text-align: justify;"><span style="font-weight: bold; text-decoration: underline;"><br />Developer :</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Monlith Productions<br /><span style="font-weight: bold; text-decoration: underline;">Publisher :&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sega<br /><span style="font-weight: bold; text-decoration: underline;">Core rating :</span>&nbsp;&nbsp;&nbsp;&nbsp; 9/10<br /><br />Simply put, I will never look at a standard 2x4 the same way again. I will start off by simply saying that this game is amazing, in almost every aspect.<br /><br />Condemned: Criminal Origins is about an excelent FBI agent named Ethan Thomas, who, of course(so cliche right?), is top notch in this agency. The game starts off like every other movie you have seen. Get a call to a local murder...get framed for the murder, blah blah blah. Thankfully, the guys over at Monolith took an almost horrible story, and made it into an excellent one.<br /><br />Let me say, this is not your normal first-person shooter. You don't have almost unlimited ammo like every other game...in fact, you hardly carry a gun this whole game. Throughout the game, you will be tracking down the person that framed you (again, very cliche), finding many drug dealers and crack head serial killers along the way. Now, seeing as that sounds so repetative, kil kill kill the whole game, there's so much more to it. You'll be in contact with Rosa most of the game - an FBI agent who actually believes you, and will help you throughout the game, finding clues and what not.<br /><br />Graphics...ahh, the main focus (for a standard gamer). Well, this is the 360, so the graphics are (of course) a little better. In fact, these graphics are probobly in the top 2 when it comes to graphics right now. Simply put, it looks amazing. Everything from the excelent lighting, to the textures, to the character models looks phenomenal. Now if this isn't enough, the sound is easily another big factor.<br /><br />Throughout the game, you'll hear many excellently done sounds. From the standard gun shot (that still seems to amaze me how realistic it sounds) to every punch - sound is dead on. On another note, the sounds scared the hell out of me the most. When walking, sometimes I would knock a bucket down or something, and it was more scary than actually seeing a druggie. The one thing though, that still has my mind curious, is how they got the sounds to be so realistic. It scares me to wonder how they got the punching, and the nasty little things that go on throughout it...makes your mind wonder.<br /><br />Gameplay. This game plays amazing. The controls are excellent, and very easy to get used to. It's your standard FPS controls, with a little more ease in it. The learning curve for the controls is almost zip, which is amazing. As I'm sure most of you have heard, the melee system is excellent. Since most of the game is based off of melee attacks, it was good to see that it was super simple, but yet super fun.<br /><br />Though everything else is good, the melee system does get a little repetative, which I actually didn't notice until after I finished the game. Thankfully, the storyline kept me going.<br /><br /></div>

Truthfully, I have yet to see a storyline keep my attention as much as Condemned did. The story was so well done, I felt like I was living the game (which boosted my scare factor quite a bit). Though this game is only 10 missions long, the story alone is enough to have even the whimpiest of people on edge for more all throughout the night. There is high replay value in this game - it's unbelievable. From going back to find all your missed achievements (dead birds, TVs, metal pieces, hidden weapons that give you points) to just being scared out of your wits again...it's amazing.<br /><br />I highly recommend this game to everyone and anyone. If there's a reason to buy an Xbox 360, it's this game alone. I give this game 9 dead birds out of 10.</div>
</div></td>
<td valign="top" width="1"><img src="img/leer.gif" width="1" height="1" alt="" /></td>
<td valign="top" width="141"><div style="position:absolute; width:140; height:200px; z-index:0; left: 580px; top: 320px;">

<TABLE bgcolor="000000" border="0" bordercolor="000000" cellpadding="0" cellspacing="0">

<img src="http://www.themaraudersmap.com/images/rightnav/top2.gif">
<tr><td width="140"></td></tr>
<tr>
<td>

<br>
<center>
<img src="http://www.themaraudersmap.com/images/misc/reviews.jpg">

</center><Br>
<br>
<img src="http://www.themaraudersmap.com/images/leftnav/bottom.jpg">
</tr>
</td>
</table>


<br>
<br>


<TABLE bgcolor="000000" border="0" bordercolor="000000" cellpadding="0" cellspacing="0">

<img src="http://www.themaraudersmap.com/images/rightnav/top.jpg">
<tr><td width="140"></td></tr>
<tr>

<td>

<br>
<center>
<img src="http://www.themaraudersmap.com/images/misc/reviews.jpg" height="230" width="130">
</center><Br>
<br><br>
<img src="http://www.themaraudersmap.com/images/leftnav/bottom.jpg">
</tr>
</td>
</table>
</div>

<div style="position:absolute; width:140; height:200px; z-index:0; left: 588px; top: 1030px;">
<?php
include_once "/home/marauder/public_html/contentmanagement/polls/booth.php";
echo $php_poll->poll_process("newest");
?>
</div></td>

</tr>
</table>
<div id="VisualMODE" style="position:absolute;left:5px;bottom:5px;padding:5px;z-index:1;background-color:#FF3300;color:#FFFFFF;border:1px solid #000000;">admin: justin</div>
</body>
</html>

themaraudersmap
01-14-2006, 12:04 PM
any thoughts at all??? :(

firepages
01-14-2006, 03:54 PM
OK is that the real source code to index.php or have you just cut & pasted 'view-source' in your browser ?

If its just the browser output it does not help us, we need to see the original index.php source

IF that is the original , then I can only assume that that is a cached version from some internal templating engine.

Either way that is not the PHP source.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum