Jump to content

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING please help!


simmsy

Recommended Posts

Hi im having trouble with this coding and this error:

'Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fightwa1/public_html/fightrd1.php on line 1'

 

 

<?php
include 'connect.php';
include 'fightheaderrd1.php';

session_start();
$username = $_SESSION['loginusername'];
if (isset($_SESSION['loginusername'])){

echo "<center><h2>Round 1</h2></center><br /><br />";

$result = mysql_query("SELECT * FROM boxerinfo WHERE username = '$username' AND status = 'online'");

while($row = mysql_fetch_array($result))
  {
echo "<div id='bluecorner'><table border='1' bordercolor='#000000' width='150' align='center'>"; 
echo "<tr bgcolor='#0000FF'>";
echo "<th align='center'><font color='#FFFFFF'>".$row['username']."</font></th>";
echo "</tr>";
echo "</table></div>";
  }
  
$result2 = mysql_query("SELECT * FROM boxerinfo WHERE fighterrequest = '$username' AND status = 'online'");

while($row2 = mysql_fetch_array($result2))
  {
echo "<div id='redcorner'><table border='1' bordercolor='#000000' width='150' align='center'>";  
echo "<tr bgcolor='#990002'>";
echo "<th align='center'><font color='#FFFFFF'>".$row2['username']."</font></th>";
echo "</tr>";
echo "</table></div>";  
  }
?>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" type="text/javascript">/* script comment */</script>

<div id="display"></div>

<script type="text/javascript">
//<![CDATA[
// Number of seconds to wait between refreshes
var seconds     = 10;

// Function to handle refreshing every iteration
var refresher   = function()
{
    // Adding data to the request forces the POST method to be used by jQuery
    // rather than adding something useless like a timestamp,
    // send something like the location of the calling page
    var data_to_send = {location: window.location};
    
    // Load the contents of the page into the <div>
    $('#display').load('fightlivecommentary.php');
}

// Set the function up to execute every "seconds" seconds
// Save a reference to the interval so we can stop it with "clearInterval(refreshing)" later
var refreshing  = setInterval(refresher, seconds * 1000);
//]]>
</script>
<?
}else{

echo "Please <b>Sign In</b> above or <a href='signup.php'><b>Sign Up</b></a> to create your boxer!</a>";
}

include 'footer.php';
?>

 

Thanks for any help

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.