Category: Mysql

How to Protect CodeIgniter Forms with CSRF Tokens

Edit Config.php file $config[‘csrf_protection’] = FALSE; $config[‘csrf_token_name’] = ‘csrf_test_name’; $config[‘csrf_cookie_name’] = ‘csrf_cookie_name’; $config[‘csrf_expire’] = 7200; $config[‘csrf_regenerate’] = TRUE; $config[‘csrf_exclude_uris’] = array(); Replace the above code with : $config[‘csrf_protection’] = TRUE; $config[‘csrf_token_name’] = ‘csrf_test_name’; $config[‘csrf_cookie_name’] = ‘csrf_cookie_name’; $config[‘csrf_expire’] = 7200; $config[‘csrf_regenerate’] = TRUE; $config[‘csrf_exclude_uris’] = array();   <form action=” ” method=” “> </form> Replace the form […]

Live Data Search using Ajax jquery in mysql php.

Create Database create database : testing create table : tbl_customer CREATE TABLE IF NOT EXISTS `tbl_customer` ( `CustomerID` int(11) NOT NULL AUTO_INCREMENT, `CustomerName` varchar(250) NOT NULL, `Address` text NOT NULL, `City` varchar(250) NOT NULL, `PostalCode` varchar(30) NOT NULL, `Country` varchar(100) NOT NULL, PRIMARY KEY (`CustomerID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14; Insert Records in database: INSERT […]

Back To Top