News

Notes: Foreign keys in MySQL automatically create an index on the table. In this example index fk_books_author_id will be created at column books.author_id.; Setting FOREIGN_KEY_CHECKS disables ...
PDO is PHP Data Objects which is used to connect to any database. Benefit of using PDO is that if there is any problem in our query it has an exception class to handle it. If any exception thrown to ...
CREATE TABLE folders ( id INT NOT NULL DEFAULT 0, name VARCHAR(255), parentid INT, PRIMARY KEY (id), FOREIGN KEY (parentid) REFERENCES folders(id) ON DELETE CASCADE ) ENGINE=InnoDB; More options ...