PHP Classes

File: data/db.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   AppML PHP CRUD   data/db.php   Download  
File: data/db.php
Role: Example script
Content type: text/plain
Description: Example script
Class: AppML PHP CRUD
Example of the AppML to build CRUD pages
Author: By
Last change:
Date: 1 year ago
Size: 369 bytes
 

Contents

Class file image Download
<?php
$servername
= "localhost";
$username = "root";
$password = "";
$dbname = "demodb";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " . $conn->connect_error);
}


$base_url = 'http://localhost/blog/';
$image_url = 'http://localhost/blog/images/';
?>