Your IP : 216.73.216.48


Current Path : /var/www/vlevski/g2s/adm/
Upload File :
Current File : //var/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");
		}
	}
?>