Can't get My Data Inserted in Database : i am new here. I am working on a school Project and can't get registration page done right. It just don't insert the data in table.[Here is a screenshot for database and table][1]

        <?php
    $con=mysqli_connect('localhost','root','123456789','eedb');
    if ($con)
    {
    	if (isset($_POST['sub']))
    	{
    		$n= $_POST['name'];
    		$un=$_POST['username'];
    		$p=$_POST['password'];
    		$cp=$_POST['confirm-pass'];
    		$e=$_POST['email'];
    		$pn=$_POST['phone-no'];
    		$g=$_POST['gender'];
    		$s=$_POST['state'];
            mysqli_query($con,"SELECT * FORM `register` ");
    		$insert= mysqli_query($con,"INSERT INTO `register`(`name`, `username`, `password`, `confirm-pass`, `email`, `phone-no`, `gender`, `state`) VALUES ('$n','$un','$p','$cp','$e','$pn','$g','$s'))");
    		if ($insert)
    		{
    			echo "<center>Data Successfully Submitted</center>";
    		}
    		else
    		{
    			echo "<center>Data Not Submitted</center>";
    		}
    	}
    }
    else
    {
    	echo "connection error";
    }

 


  [1]: http://i.stack.imgur.com/jJhZv.png