View Single Post
Staro 08.09.2011., 16:43   #7
zwer
crnjo
Moj komp
 
zwer's Avatar
 
Datum registracije: Mar 2003
Lokacija: Zagreb
Postovi: 1,907
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).
__________________
9900K-32GB-5TB-3060TI
zwer je offline   Reply With Quote