2010-10-12, 09:18 AM
Hi once again im trying to get a php page i coded. but it kinda seems lame cuz i cant intergrate it to the forums. Owguru.com is the forums. Owguru.com/gods.php is the page i want to intergrate.
<?
include ("config.php");
if (!$_GET[god]) {
echo "<center><table border=0><tr>";
$lasttype = '';
$results = mysql_query("select * from Gods order by type_rank, rank Asc")or die(mysql_error());
while ($row = mysql_fetch_array($results)) {
if ($lasttype != $row[type]) {
echo "</tr></table><table border=0><th align=center colspan=15><br><b><u>$row[type]</b></u></th><tr>";
}
echo "<center><td align=center><a href='gods.php?=".$row[short]."'><img src='".$row[image]."' title='".$row[name]."' border=0 width=100 height=100></img></a></td></center>";
$lasttype = $row[type];
}
}
if ($_GET[short]) {
//Display your individual god stuff here
}
<html>
<head>
<title>{$mybb->settings[bbname]} - Example Page</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
<!-- Content: Start -->
CODE HERE
<!-- Content: End -->
{$footer}
</body>
</html>
<?php
define('IN_MYBB', 1);
require "./global.php";
add_breadcrumb("Example Page", "example.php");
eval("\$example = \"".$templates->get("example")."\";");
output_page($example);
?>