Skip to content

Instantly share code, notes, and snippets.

View tahaghafuri's full-sized avatar
👨‍💻
Coding

Taha Amin Ghafuri [T@G] tahaghafuri

👨‍💻
Coding
View GitHub Profile
<html>
<head>
<title> TAGTEACH </title>
<style>
h1{
background-color: wheat;
font-size: 100px;
text-align: center;
}
</style>
@tahaghafuri
tahaghafuri / phpfix
Last active July 1, 2022 10:51
PHPFix Library
https://github.com/teekyar/phix/
@tahaghafuri
tahaghafuri / clean.php
Created June 13, 2022 18:46
Anti Injection String PHP
function clean($text) {
$text=str_replace('/','',$text);
$text=str_replace('*','',$text);
$text=str_replace('+','',$text);
$text=str_replace('-',' ',$text);
$text=str_replace('_',' ',$text);
$text=str_replace('=','',$text);
$text=str_replace('`','',$text);
$text=str_replace('"','',$text);
$text=str_replace("'",'',$text);
function mysqli_result($res, $row=0, $col=0){
$numrows = mysqli_num_rows($res);
if ($numrows && $row <= ($numrows-1) && $row >=0){
mysqli_data_seek($res,$row);
$resrow = (is_numeric($col)) ? mysqli_fetch_row($res) : mysqli_fetch_assoc($res);
if (isset($resrow[$col])) {
return $resrow[$col];
}
}
return false;