Category: Programming

Bootstrap carousel – fade effect vs slide

To implement a fade transition for your bootstrap carousel, add and use the following class to the carousel main holder.

Example:

 

PHP – Automatic “Table of Contents” based on headers (h1, h2, etc)

Works like a charm.

Also it add automatic ids for your tags, for automatic linking.

Demo here: http://assist-software.net/blog/qualsyst-iso-management-application

Source: http://www.westhost.com/contest/php/function/create-table-of-contents/124

MySql – Cannot delete or update a parent row: a foreign key constraint fails

Have you ever tried to make a relation with a foreign key, and when inserting, you get this error?

Googling this will give you many possible solutions:

  • foreign key does not exist in the related table
  • you have invalid data in one of the tables
  • your foreign key relation is backwards
  • disable foreign key checks (not cool)

For me, none of these worked.

By mistake, I found the real problem: One of the related tables had a different storage engine.

The Solution: Set the same …

Read More