Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 478 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 478 Bytes

PHP-OOP-CRUD-with-security.

how to use.

<?php
require_once("app/header.php");
require_once("app/database.php");
require_once("app/security.php");
require_once("app/data-validation.php");
require_once("app/crud.php");

$validation = new DataValidsation();
$security = new Security();
$crud = new Crud;

$query  = "SELECT id FROM Users WHERE email = ?";
$types = "s";
$values = array("email" => $email);
$check_id = $crud -> GetData($query, $types, $values);

?>