Skip to content

Instantly share code, notes, and snippets.

View 247rahimab's full-sized avatar
💭
Again On in coding !!

Abdur Rahim 247rahimab

💭
Again On in coding !!
  • Jahangirnagar University
  • Savar Dhaka-1342
View GitHub Profile
@247rahimab
247rahimab / Validate.php
Created April 8, 2018 10:15 — forked from azrulharis/Validate.php
Php validation using array and display error on each form fields
<?php
class Validate {
public $message = array();
public $validate;
public function rules($data) {
foreach($data as $key => $value) {
@247rahimab
247rahimab / gist:d822afc63382ca38e11520e90785869e
Created April 2, 2017 12:36
DataTable TableTools example exporting hidden column to PDF
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>DataTables TableTools PDF Export</title>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
@247rahimab
247rahimab / example.php
Created January 19, 2017 19:37 — forked from thepsion5/example.php
An extremely simple example of how to create a generic validation function using PHP's filter_input() function and/or callbacks
<?php
//Define how each POST field is validated
$fieldValidation = [
'username' => 'required',
'first_name' => 'required',
'last_name' => 'required',
'website' => 'website',
'email' => 'email',
'pass' => 'password',