Created
April 2, 2018 04:59
-
-
Save prodhan/48d717f6b2e743ce877f67b052a0d42c to your computer and use it in GitHub Desktop.
ADN CIW level 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('header.php'); | |
include('connection.php'); | |
if(isset($_POST['submit'])){ | |
$name=$_POST['name']; | |
$roll=$_POST['roll']; | |
$phone=$_POST['phone']; | |
$sql="INSERT INTO info (sname, roll, phone) VALUES('$name', '$roll', '$phone')"; | |
if(mysqli_query($conn, $sql)){ | |
echo "Success!"; | |
} | |
else | |
echo "Error!".mysqli_error($sql); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment