unexpected T_STRING
Posted: Tue Jun 26, 2007 10:54 am
Hi Guys,
I'm getting an
The error seems tobe coming from this line of code:
All help will be apperciated thanks....
I'm getting an
output from this piece of code:unexpected T_STRING
Code: Select all
<?PHP
$daterep = str_replace("/","-",$datefrom);
$datereps = str_replace("/","-",$dateto);
$newdate = date ("d M Y", strtotime ($daterep));
$newdates = date ("d M Y", strtotime ($datereps));
setcookie("from", $newdate, time( )+600);
setcookie("to", $newdates, time( )+600);
setcookie("hotel", $subcat, time( )+600);
$availabilty _days = $_GET['availabilty _days'];
if($availabilty _days > 0) {
$newdate = date('d M Y', strtotime("-$availabilty _days days"));
}
?>Code: Select all
if($availabilty _days > 0) {