Archive for the ‘Others’ Category:

Flat File Database

{ Posted on Sep 15 2009 by admin }
Categories : Others, PHP
An easy way of creating flat file database. in my sample i use "[]" as my marker container you can also try using <> to make it look like or make it as XML file /** * @ Author : TENG * @ ...Read More »

Prevent SQL injection

{ Posted on Aug 27 2009 by admin }
Categories : Others, PHP
Here's an easy way of preventing SQL injection in this sample I use POST as my array you. basic way of escaping string for your SQL $var = 'foo'; $var = mysql_escape_string($var); Escaping string and overriding value of an array $_POST = array_map('mysql_escape_string',$_POST); looping ...Read More »