I'm getting the following error message on a basic newsletter program im putting together, I'm assuming that it may have something to do with additional white/ blank spaces in the code but, I cant find any in the code.
Quote:
PHP Parse error: syntax error, unexpected '<<' (T_SL) in /blah/blah/domain.com/news/admin/index.php on line 11
|
This is the index.php file code:
Quote:
<?php
require_once 'config.php';
login_required();
$users = count_query("SELECT COUNT(*) AS num FROM users");
$emails = count_query("SELECT COUNT(*) AS num FROM subscribers");
$subs = count_query("SELECT COUNT(*) AS num FROM subscriptions");
$nls = count_query("SELECT COUNT(*) AS num FROM newsletters");
$mess = count_query("SELECT COUNT(*) AS num FROM messages");
$temps = count_query("SELECT COUNT(*) AS num FROM templates");
$title = "Home!";
$content = <<<EOF
<h3>current stats</h3>
<p>$users user registered</p>
<p>$emails subscribers</p>
<p>$subs newsletter subscriptions</p>
<p>$nls newsletters</p>
<p>$mess messages</p>
<p>$temps templates</p>
EOF;
include 'layout.php'; ?>
|
Any help would be greatly appreciated, I've been fucking with this line 11 issue for the last 30 minutes with no resolve :/