-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
37 lines (26 loc) · 1.12 KB
/
init.php
File metadata and controls
37 lines (26 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include 'database.php';
$database = new Database("sql212.infinityfree.com", "if0_35316583_Setram", "if0_35316583", "95vhnfp7");
$employersTable = new Employers($database);
$clientsTable = new Clients($database);
$subscriptionTable = new Subscription($database);
$complimentsTable = new Compliments($database);
$additionalItemsTable = new AdditionalItems($database);
$add = new Refuses($database);
$feedbacks = new feedbacks($database);
$employersTable->createTable();
$clientsTable->createTable();
$subscriptionTable->createTable();
$complimentsTable->createTable();
$additionalItemsTable->createTable();
$add->createTable();
$feedbacks->createTable();
$connexion = new PDO("mysql:host=sql212.infinityfree.com;port=3306;dbname=if0_35316583_Setram","if0_35316583","95vhnfp7");
$query = "INSERT INTO employers (`Type`, `Full name`, `Date of birth`, `employer ID`, `Place`, `password`)
VALUES ('Admin', 'Bouzara Zakaria', '2003-10-02', 10000, 'Headquarter', 'pass')";
$e = $connexion->prepare($query);
$e->execute();
// $database->closeConnection();
?>