<?
include "../classes/db.class.php";

$db = new db();

$client_name = $_GET['client_name'];
$email = $_GET['email'];
$contact_person = $_GET['contact_person'];
$location = $_GET['location'];
$company_name = $_GET['company_name'];
$contact_number = $_GET['contact_number'];
$vat_number = $_GET['vat_number'];
$company_registration_number = $_GET['company_registration_number'];
$status = $_GET['status'];

$res = $db->insert("INSERT INTO clients (`client_name`, `email`, `contact_person`, `location`, `company_name`, `contact_number`, `vat_number`, `company_registration_number`, `status`) VALUES ('$client_name', '$email', '$contact_person', '$location', '$company_name', '$contact_number', '$vat_number', '$company_registration_number', '$status')");

if ($res) {
    echo 1;
} else {
    echo 0;
}