Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php code to create database

<?php
session_start(); 
//error_reporting(0);
// if (isset($_GET['submit'])) {
// 	echo "button clicked";
// 	echo $_GET['name'];
// }
$servername = "localhost";
$username = "root";
$password = "";
$database = "epass";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $database);
// Check connection
if (!$conn) {
  die("Connection failed: " . mysqli_connect_error());
}
// echo "Connected successfully";
?>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #php #code #create #database
ADD COMMENT
Topic
Name
3+5 =