Blog Archives

sanitize function to prevent sql injection in php 2014


function input_sanitize_data($post){ $lowerpost = strtolower ($post); $data = str_replace(‘–‘, ”, $post); $data = str_replace(“‘”, ”, $post); $data = str_replace(‘=’, ”, $post); $data = str_replace(‘;’, ”, $post); if (!(strpos($lowerpost, ‘ or ‘)===FALSE)){ return false;} if (!(strpos($lowerpost, ‘table’)===FALSE)){ return false;}return $post; }

Tagged with: , , , , , , , , ,
Posted in php

number Pagination with drop down box to limit number of pages in php


drop down box Code: <form action=”” method=”GET” id=”pagination” name=”pagination”> <tr> <td>DISPLAY <input type=”HIDDEN” value=”<?php if(isset($_GET[‘mydisplaylimit’])) echo $_GET[‘mydisplaylimit’];?>”  id=”limits” name=”limits”> <select style=”border: 2px outset rgb(204, 51, 0);” size=”1″ name=”mydisplaylimit” id=”mydisplaylimit” > <?php $default_limit = isset($_GET[‘mydisplaylimit’]) ? $_GET[‘mydisplaylimit’] : 5; foreach (array(5,

Tagged with: , , , , , , , , , , , ,
Posted in number Pagination with drop down box to limit number of pages in php, Practice Makes a beginner to become php programmer expert(practical task to become php programmer)

Create PHP Framework in One Hour using MVC


Create PHP Framework in One Hour using MVC. For every language out there, there is a multitude of corresponding frameworks that have been written, tested, extended, and proven. Why then, would you want to roll your own? Maybe you haven’t

Tagged with: , , , , , , , , , , ,
Posted in Create PHP Framework in One Hour using MVC.
Follow Tutorial on WordPress.com
categories
Calendar
May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
Follow me on Twitter
Blog Stats
  • 88,190 hits