Sometimes you need to store the data in database in encrypted format. No worries, use these below very simple function to encode and decode string in php. Below are the functions for doing same and is very easy to use, you can customize these as per your requirement to make it very strong encoded.…
get_magic_quotes_gpc() There is a PHP feature or function called as magic quotes that was created to help protect newbie programmers from writing bad form processing code. Magic quotes will automatically escape risky form data that might be used for SQL Injection with a backslash \. The characters escaped by PHP magic quotes includes :…
Basically there are three major types of errors in PHP Notices,Warnings and Fatal errors Notices Notices are small, non-critical errors that PHP encounters while executing a script.By default, such errors are not displayed to the user at all and these will not cause script termination. Condition like Accessing a variable that not define. …
Delete all duplicate rows except for one in MySql having no primary key. Someone asked me to delete all rows from a table except one entry with a single query. This is not so easy for me :), Anyway after work and research I have found the solution, I am sharing with you How you can…
PDO : PHP Data Object PDO is an acronym for PHP Data Objects. It is a database access layer providing a uniform method of access to multiple databases. Use of PDO : Let a suppose you need to connect your database to Oracle or IBM DB2 in your existing code(written in MySQL/PHP) or if you…