Jump to content

[SOLVED] Can someone help me?


Shiny_Charizard

Recommended Posts

I get this error on my top.php :

 

Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/tpfrpg/public_html/top.php on line 28

 

Here is my top.php file:

<?php
session_start();
$loggedin = false;
// Check to see if we are logged in
if(session_is_registered("username") && session_is_registered ("password"))
{	
$loggedin = true;
}
?> 
<HTML>
<title>The Pokémon Flamez RPG - Version 0.1 </title>
<HEAD>
<link rel="stylesheet" href="style.css" type="text/css">
</HEAD>
<body>
<!-- Banner Start -->
<center><TABLE BORDER="1">
<TD><a href="/index.php">
<img src="/images/bannerv01.png" border="0" alt="The Pokémon Flamez RPG" title="The Pokémon Flamez RPG"></a></TD>
</TABLE>
</center>
<!-- Banner End -->

<?PHP
if($loggedin==false)
{
echo "<center>
<TABLE BORDER=\"1"\ WIDTH=\"988"\ >
<TD>
<TABLE BORDER=\"1"\ RULES=\"rows"\ WIDTH=\"190px"\ ALIGN=\"center"\ >
<TR>
<TD CLASS=\"theadings"\ ><CENTER><B>General</B></CENTER></TD>
</TR>
<TR>
<TD CLASS=\"headings"\ ><CENTER><a href=/"index.php/"> Home </a></CENTER></TD>
</TR>
<TR>
<TD CLASS=\"headings"\ ><CENTER><a href="\register.php"\ > Register </a></CENTER></TD>
</TR>
<TR>
<TD CLASS=\"headings"\ ><CENTER><a href=\"login.php"\ > Login </a></CENTER></TD>
</TR>
</TABLE>
</TD>";
}
else 
{ 
echo "<center> 
<TABLE BORDER=\"1"\ WIDTH=\"988"\ > 
<TD> 
<TABLE BORDER=\"1"\ RULES=\"rows"\ WIDTH=\"190px"\ ALIGN=\"center"\ > 
<TR> 
<TD CLASS=\"theadings"\ ><CENTER><B>General</B></CENTER></TD> 
</TR> 
<TR> 
<TD CLASS=\"headings"\ ><CENTER><a href=\"index.php"\ > Home </a></CENTER></TD>
</TR> 
<TR> 
<TD CLASS=\"headings"\><CENTER><a href=\"stafflist.php"\ > Staff List </a></CENTER></TD> 
</TR> 
<TR> 
<TD CLASS=\"headings"\ ><CENTER><a href=\"logout.php"\ > Log Out </a></CENTER></TD> 
</TR> 
<TR> 
<TD CLASS=\"theadings"\ ><CENTER><B>Users</B></CENTER></TD> 
</TR> 
<TR> 
<TD CLASS=\"headings"\ ><CENTER><a href=\"profile.php"\ > My Profile </a></CENTER></TD> 
</TR> 
<TR> 
<TD CLASS=\"headings"\ ><CENTER><a href=\"viewprofiles.php"\ > View Members </a></CENTER></TD> 
</TABLE> 
</TD>";
?>

 

Can anyone please tell me what's wrong?

Link to comment
Share on other sites

Oh, ok thanks let me try that. :)

 

Edit: After I change it to backslashes it came up with 2 errors:

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/tpfrpg/public_html/top.php on line 27

 

Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/tpfrpg/public_html/top.php on line 27

Link to comment
Share on other sites

 

<?php

 

echo "<TABLE BORDER=\"1"\ WIDTH=\"988"\ >

<TD>

<TABLE BORDER=\"1"\ RULES=\"rows"\ WIDTH=\"190px"\ ALIGN=\"center"\ >

<TR>

<TD CLASS=\"theadings"\ ><CENTER><B>General</B></CENTER></TD>

</TR> ...............................................

........................................................

........................................................

?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.