I have a database with primary key set to auto increment. But can't enter form data from a post method in php. Can anyone help me? : Here's the code. I have logins table in users database. Also a form whose action is set to below code.
    <?php 
    if(isset($_POST['signup'])){
    	if (isset($_POST['Full-name']) && isset($_POST['psd']) && isset($_POST['email'])) {
    			$link2 = @mysqli_connect('localhost', 'root', '') or die("Oops! Can't connect");
    			@mysqli_select_db($link2, 'users') or die("Can't find Database");
    			$fullname = $_POST['Full-name'];
    			$email2 = $_POST['email'];
    			$newpassword = $_POST['psd'];
    			echo $fullname.$email2.$newpassword; //print sucessfully
    			
    			$query2 = mysqli_query($link2, "INSERT INTO logins VALUES (NULL, $email2, $newpassword)");
    			if ($query2) {
        echo "You have signed up successfully";
    } else {
    	
        echo "Error: ";   //query prints this statement
    }
    mysqli_close($link2);
    		}	
    	
    }
    
    ?>