| Current Path : /srv/www/vlevski/g2s/adm/ |
| Current File : //srv/www/vlevski/g2s/adm/s.php |
<?php
if (isset($_POST["sname"]))
{
$sname=$_POST["sname"];
$scity=$_POST["scity"];
$cntr=$_POST["cntr"];
}
else
{
$sname="";
}
if ($sname=="")
{
print("ERR");
}
else
{
include("../conn.php");
$dq=mysqli_query($db, "INSERT INTO `schools` (`i`, `schoolname`, `schooltown`, `schoolcountry`) VALUES (NULL, '".$sname."', '".$scity."', '".$cntr."');");
if ($dq)
{
print("OK");
}
else
{
print("ERR");
}
}
?>