- <?php include ("connectdatabase.php"); ?>
- <?php
- $name=$_POST['nation'];
- $protection=$_POST['protection'];
- $country=$_POST['country'];
- $query2 = "INSERT INTO wing (wingname, country, protection) VALUES ('$name', '$country', '$protection')";
- mysql_query($query);
- if ($query2==TRUE)
- {
- echo "Data entered into database";
- }
- ELSE
- {
- echo "error in creation of wing. please contact alexi";
- }
- echo $name;
- ?>