<?php
include("connect_bd.php")
$result=mysql_query("SELECT * FROM buyer",$db);
$myrow=mysql_fetch_array($result);
if(isset($_POST['name']))
{
$name = $_POST['name'];
}
if isset(($_POST['numb']))
{
$number = $_POST['numb'];
}
if isset(($_POST['e-mail']))
{
$email = $_POST['e-mail'];
}
if isset(($_POST['pay']))
{
$pay = $_POST['pay'];
}
if isset(($_POST['dostavka']))
{
$dostavka = $_POST['dostavka'];
}
if(isset($name)&& isset($number)&& isset($email) && isset($pay) && isset($dostavka))
{
mysql_query("INSERT INTO `buyer` (`id`, `name`,`number`, `e-mail`,`pay`,`dostavka`) VALUES('NULL','$name','$number','$email','$numb','$pay','$dostavka')");
echo("all good");
}
else
{
echo("all bad");
}
?>
вот ошибка: Parse error: syntax error, unexpected T_VARIABLE in C:\OpenServer\domains\china-products.com\client_buy.php on line 4