Code:
<?php
// connect to database
$db = mysql_connect("localhost","root","");
mysql_select_db('mysql', $db);
// if not gud connect, die.
if (!$db) {
die('Could not connect: ' . mysql_error());
}
$query = "INSERT INTO test (vreme) VALUES ('2222-11-08 12:45:56')";
mysql_query($query) or die('SQL njesra');
?>
Meni ovaj kod koji je skoro identican tvom radi oke... MySQL5, PHP 5.2.
I uredno trpa sva vremena koja sam mu dao, osim kad sfelsas nemoguce vrijeme (tipa 2011-32-13 25:55:03).