<?php
// Connect to the database
$db = mysql_connect(*************);
mysql_select_db ("***************");
echo ' Today is ',date('F j, Y'), ' --- You accessed this page from IP Address ',$REMOTE_ADDR;
// Ask the database for the information from the table
$query = "SELECT artist,venue,dateofevent,date_format(dateofevent,'%M %d, %Y') as dateofevent FROM newevents where dateofevent >= curdate()";
$result = mysql_query($query);
//used to color the cells
$numofrows = mysql_num_rows($result);
//used to color the cells
echo "<TABLE BORDER=\"0\">\n";
echo "<TR bgcolor=\"green\"><TD>DATE</TD><TD>ARTIST</TD><TD>VENUE</TD></TR>\n";
$i=0;
while($row = mysql_fetch_array($result)) {
$dateofevent = $row['dateofevent'];
$artist = $row['artist'];
$venue = $row['venue'];
// echo "You have $numrows user(s) in the database";
if($i % 2) {
$color = "lightgreen";
} else {
$color="white";
}
echo <<< EOHTML
<tr bgcolor="$color">
<td>$dateofevent</td>
<td>$artist</td>
<td>$venue</td>
</tr>
EOHTML;
$i++;
}
mysql_close(); // Close the database
?>
HERE IS THE ERROR I GET:
Parse error: parse error, unexpected $ in /home/clevel04/public_html/eventswithdate8.php on line 87
LINE 87 IS THE echo <<< EOHTML statement line...
Thanks