Skip to content

Instantly share code, notes, and snippets.

@prodhan
Created April 2, 2018 04:59
Show Gist options
  • Save prodhan/48d717f6b2e743ce877f67b052a0d42c to your computer and use it in GitHub Desktop.
Save prodhan/48d717f6b2e743ce877f67b052a0d42c to your computer and use it in GitHub Desktop.
ADN CIW level 3
<?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