getting an unexpected error and I cannot find out why. The error
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/site/public_html/my_scripts/renew.php on line 18
is talking about this line:
[code:1]$4week = strtotime($today) + 672*3600;[/code:1]
and the full code is:
[code:1]<?php
require ("db_info.php"«»); // grabs the database info
$today=date('Y-m-d');
// Opens a connection to a mySQL server
$connection=mysql_connect ($hostname, $username, $password);
if (!$connection) {
die('Not connected : ' . mysql_error());
}
// Set the active mySQL database
$db_selected = mysql_select_db($database, $connection);
if (!$db_selected) {
die ('Can\'t use db : ' . mysql_error());
}
$4week = strtotime($today) + 672*3600;
$3week = strtotime($today) + 504*3600;
$2week = strtotime($today) + 336*3600;
$1week = strtotime($today) + 168*3600;
$zero = strtotime($today) + 24*3600;
$expire= date('Y-m-d', $4week);
$expire2= date('Y-m-d', $3week);
$expire3= date('Y-m-d', $2week);
$expire4= date('Y-m-d', $1week);
$expire5= date('Y-m-d', $zero);[/code:1]
What's wrong with that code?