Hi all
I am getting the following error when running a script
SCRIPT:
$connection = mysql_connect($server, $user, $password);
mysql_select_db($database, $connection);
$offset=$_GET['offset'];
$step = $diff = 10;
$r = mysql_query("SELECT COUNT(*) FROM accom ) or die(mysql_error());
$anz = mysql_result($r,0);
if ($offset+$diff>=$anz) {
$diff = $anz - $offset;
$vor = TRUE;
}
if (!$offset || $offset<0) {
$offset = 0;
$zur = TRUE;
}
LINE 112 : $query = "select location, name, county, rating, tariff from accom LIMIT $offset,$diff";
ERROR:
Parse error: parse error in /homepages/41/d43000764/htdocs/TraveltoEngland/Accomodation/accommall.php on line 112