Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

config in php

<?php 

$servername = "localhost";
$username = "root";
$password = "";

try {
  $conn = new PDO("mysql:host=$servername;dbname=crud", $username, $password);
} catch(PDOException $e) {
  echo "Connection failed: " . $e->getMessage();
  exit();
}

$errors = ['result' =>'', 'email'=>'', 'password'=>'', 'login'=>'', 'signup'=>''];

session_start();

require('controllers/contacts-controller.php');

require('controllers/auth-controller.php');





?>
Source by www.androidhive.info #
 
PREVIOUS NEXT
Tagged: #config #php
ADD COMMENT
Topic
Name
6+8 =