Currently browsing

December 7, 2012

FOREIGN KEY Constraint clauses

FOREIGN KEY Constraint clauses Here in this article I am not going to provide the definition of foreign key and how it works. As we all know very well about it.   I am going to illustrate about FOREIGN KEY Constraint clauses. The FOREIGN KEY has two types of clauses …

PHP memory consumption with Arrays and Objects update generators

PHP memory consumption with Arrays and Objects (update: generators) pre { background-color:#444; white-space:pre-wrap; font-size:90%; padding:0px 6px; } Lessons learned: objects need more memory than arrays (+ 2-10 percent) comparing 32bit to 64bit systems, memory consumption increases by 100-230 percent if array values are numeric, don’t save them as strings! saving …

PHP with MySQL How to connect to MySQL database using PHP

PHP with MySQL: How to connect to MySQL database using PHP? Connection to MySQL database using PHP is very simple and includes only few steps. First of all we establish a connection to database using username and password. Then we select the database that is already created using MySQL console …