немного ошибся. Ошибку выдает не на строку.. а на парс.
$db = new mysqli('localhost', 'root', '', 'bd');
mysql_query("SET NAMES 'cp1251'");
$query = "insert into info
(id, room1, zal1)
values
(id, '$room1', '$zal1')";
$result = $db->query ($query);
if($result){echo "Info add";} else{echo "Info are not add";}
if ($zone1!=''){
$query = "insert into price
(id, common_room, zal, action, date_seance, time_seance, zone, price)
values
(id, '$common_room', '$zal', '$name', '$date_seance', '$m_seance_hour1:$m_seance_min1', '$zone1', '$price' )";
257 строка $result = $db->query ($query);
if($result){echo "Price1 add";} else{echo "Price1 are not add";}}
if ($zone2!=''){
$query = "insert into new
(id, common_room, zal, action, date, time, zone, price)
values
(id, '$common_room', '$zal', '$name', '$date', '$m_seance_hour2:$m_seance_min2', '$zone2', '$price')";
$result = $db->query ($query);
Parse error: parse error in C:\……\new.php on line 257