I know there are a lot of topics with the same title. But mostly it\'s the query that\'s been inserted in the wrong place. But I think I placed it right. So the problem is,
According to the manual mysql_insert_id returns:
The ID generated for an AUTO_INCREMENT column by the previous query on success, 0 if the previous query does not generate an AUTO_INCREMENT value, or FALSE if no MySQL connection was established.
Since it does not give you false and not the correct number it indicates that the queried table didn't generate an auto-increment value.
There are two possibilities I can think of:
Solution:
$waarde = mysql_insert_id($this->db);