Jump to content

Archived

This topic is now archived and is closed to further replies.

chikarma

PHP SCRIPT PROBLEMS

Recommended Posts

have a PHP section on my website. The website page is www.chikarma.com/internationaldivingclub

Please could some one help me because as none of my links on this page work or go to the next page. They all show a blank page. You can see what i mean when you click any link on the page.

Could someone help me with how i can fix this.

Here is the script

<?
session_start();
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");
require "admin/config/general.inc.php";
include "classes/User.php";
include "classes/DB.php";
require "language/$set_lang.inc";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Diving Buddy : Dive Buddies : Chikarma World International Diving Club Online</title>
<META name="Description" content="Diving Buddy online diving club. Meet diving buddies online in this world virtual diving club hosted by Chikarma Diving. Meet fellow divers from all over the world and make 100's of new friends.">
<META name="Keywords" content="diving buddy, diving buddies, dive buddy, dive buddies, dive buddy online, diving buddy online, diving buddies online, meet diving buddies, world diving club, chikarma international online diving club, online diving club, diving buddy forum, diving, diving holidays, chikarma diving, diving packages">
<meta name="rating" content="general">
<meta name="revisit-after" content="31 Days">
<meta name="copyright" content="Copyright ©2003 - Chikarma Property ">
<meta name="expires" content="never">
<meta name="distribution" content="global">
<meta name="robots" content="index,follow">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style/style.css" rel="stylesheet" type="text/css">
</style>
</head>

<body bgcolor="#FFFFFF">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="526"><a href="http://www.chikarma.com/divingphotos"><img src="images/Imagegallery.jpg" width="260" height="50" border="0"></a><a href="http://www.chikarma.com/invisionboard"><img src="images/forum.jpg" width="264" height="50" border="0"></a></td>
<td width="234" align="right" valign="bottom"><table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><img src="layout_img/bullet-link-fp.gif" width="17" height="16" hspace="4" vspace="6" align="absmiddle">&nbsp;<span class="link-main">
<?
if ($_SESSION["username"])
{
echo "<a href='member.php' class='link-main'>" . MEM_AREA_FOR . " " . $_SESSION["username"] . "</a></span>";
}
else
{
echo "<a href='join.php' class='link-main'>" . JOIN_NOW . "</a></span>";
}
?>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="59"><img src="layout_img/header-fp-01.jpg" width="59" height="196"></td>
<td width="169"><img src="layout_img/header-fp-02.jpg" width="169" height="196"></td>
<td width="90"><a href="join.php"><img src="layout_img/header-fp-03.jpg" width="90" height="196" border="0"></a></td>
<td width="176"><img src="layout_img/header-fp-04.jpg" width="176" height="196"></td>
<td width="35"><img src="layout_img/header-fp-05.jpg" width="35" height="196"></td>
<td width="198"><img src="layout_img/header-fp-06.jpg" width="198" height="196"></td>
<td width="33"><img src="layout_img/header-fp-07.jpg" width="33" height="196"></td>
</tr>
</table>
<table width="760" height="62" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="141"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo MEMBER_LOGIN ?></span></td>
<td width="619"><img src="images/intropic.jpg" width="618" height="65"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="251"><table width="251" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="251" height="123" valign="top" bgcolor="#E6F0FA"><form name="form1" method="post" action="login.php"><table width="98%" border="0" align="right" cellpadding="2" cellspacing="2">
<tr>
<td height="30">
<input class="form-elements" type="text" name="username" style="background:#E6F0FA;">
<span class="verdana-10pts-black"><? echo USERNAME_LARGE ?></span></td>
</tr>
<tr>
<td height="30"><input name="password" type="password" class="form-elements" style="background:#E6F0FA;">
<span class="verdana-10pts-black"><? echo PASSWORD_LARGE ?></span></td>
</tr>
<tr>
<td height="30"><input name="submit" type="image" value="Submit" src="layout_img/login-button-fp.gif" width="77" height="22"></td>
</tr>
<tr>
<td class="verdana-10pts-black"><? echo FORG_CLICK ?>
<strong><a href="reset.php" class="verdana-10pts-black"><? echo HERE_LARGE ?></a></strong>!</td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td height="24" bgcolor="#D9E3ED"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo RANDOM_SPECIALS ?></span></td>
</tr>
</table></td>
<td width="28" bgcolor="#D9E3ED"><img src="layout_img/inter-login-search.gif" width="28" height="147"></td>
<td width="481" valign="top" bgcolor="#F8F1ED"><table width="481" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="481"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo GUEST_SEARCH ?></span></td>
</tr>
<tr>
<td align="right"><table width="450" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="450" class="verdana-10pts-orange"><? echo HERE_SIMPLE ?></td>
</tr>
<tr>
<td class="verdana-10pts-orange"><img src="layout_img/pixel.gif" width="1" height="5"></td>
</tr>
<tr>
<td class="verdana-10pts-orange">

<? include "guestsearch_inc.php"; ?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>


<? include "random_pic.php"; ?>

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#F8F1ED"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo WHO_IS_ONLINE; ?></span></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>

<? include "whoisonline.php"; ?>
<p />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#F8F1ED"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo STATS ?></span></td>
</tr>
</table>

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>

<?
include "stats_inc.php";
?>
<p></p>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#F8F1ED" width="253"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo MOST_VIEWED ?></span></td>
<td bgcolor="#F8F1ED" width="253"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo LAST_ACTIVE ?></span></td>
<td bgcolor="#F8F1ED" width="253"><img src="layout_img/bullet-header-fp.gif" width="17" height="16" hspace="4" vspace="4" align="absmiddle">&nbsp;<span class="link-main"><? echo LEAST_VIEWED ?></span></td>
</tr>
</table>

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="layout_img/horiz-line.gif"><img src="layout_img/pixel.gif" width="1" height="1"></td>
</tr>
</table>

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="253"><p><? include "most_viewed.php"; ?></p></td>
<td width="253"><p><? include "last_active.php"; ?></p></td>
<td width="253"><p><? include "least_viewed.php"; ?></p></td>
</tr>
</table>


<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="50" align="center" class="verdana-10pts-orange"><p><a href="http://www.chikarma.com/linkmanager/index.php"><img src="images/linkdirectory.jpg" width="264" height="75" border="0"></a><a href="http://www.chikarma.com/xtcommerce"><img src="images/divingbooks.jpg" width="264" height="75" border="0"></a><br>
</p>
</td>
</tr>
</table>
<script language=javascript type="text/javascript"
src="http://ss.webring.com/navbar?f=j;y=chikarma;u=10125225">
</script><noscript><center>
<table bgcolor=gray cellspacing=0 border=2><tr>
<td><table cellpadding=2 cellspacing=0 border=0><tr><td align=center>
<font face=arial size=-1>This site is a member of WebRing.
<br>To browse visit <a href="http://ss.webring.com/navbar?f=l;y=chikarma;u=10125225">
Here</a>.</font></td></tr></table></td></tr></table>
</center></noscript>
</body>
</html>

Share this post


Link to post
Share on other sites
If your not interested in learning php post this request in the freelancers forum.

Share this post


Link to post
Share on other sites
I brought up your page:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]profile.php?profile=susan34[/quote]
--it came up blank, I looked at the source html code and what you've got is what is returned when your php page has a syntax error in it. A single missing ';' will cause the compilation of the page to fail and then the page will not be executed and will instead return an empty html page. You may be able to turn the syntax error message on with php but some web hosts turn that off because it is considered a security risk.

[code]// Report all PHP errors (bitwise 63 may be used in PHP 3)
error_reporting(E_ALL);

// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);[/code]

Share this post


Link to post
Share on other sites

×

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.