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
https://forums.phpfreaks.com/topic/83529-solved-can-someone-help-me/
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

 

<?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> ...............................................

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

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

?>

 

Ok I did that now and it gives me a diffrent error:

 

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_STRING, expecting ',' or ';' in /home/tpfrpg/public_html/top.php on line 27

Archived

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

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