Skip to content

Instantly share code, notes, and snippets.

View Ahmed-Elswerky's full-sized avatar
👋
coding 24/7

Ahmed Swerky Ahmed-Elswerky

👋
coding 24/7
View GitHub Profile
@Ahmed-Elswerky
Ahmed-Elswerky / footer.php
Last active June 11, 2017 09:23
This gist is Shantah (http://shantah.me.pn) (shopping site I'm building)
@Ahmed-Elswerky
Ahmed-Elswerky / funcs.php
Last active June 11, 2017 09:16
This gist is my portfolio
<?php
ob_start();
if(session_status() == PHP_SESSION_NONE)
session_start();
include 'mysqli.php';
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;