Wednesday, January 20, 2016

incomplete insert script

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>


<?php

$servername = "localhost";
$name = "";
$password = "";
$dbname = "profile";


// = new mysqli($servername, $name, $password, $dbname);
$conn = new mysqli('localhost', 'root', '', 'wpsi26');

$sql = "INSERT INTO profile (id,name, email, phone)
VALUES ('id', 'name', 'email','phone')";




?>



<form>
<input type="text" name="id" placeholder="id">
<input type="text" name="name" placeholder="name">
<input type="text" name="email" placeholder="email">
<input type="text" name="phone" placeholder="phone">
<input type="submit" name="submit" value="submit">
</form>

</body>
</html>

No comments:

Post a Comment