|  HTML interesse |  | Ben ik nou gek, of is er iets fout met men code? 
 
 
    
    
        
            
                
<?php 
session_start();
include("config.php"); 
$bericht = nl2br($_POST['bericht']); 
$topic_id = $_POST['topic'];    
$datum = date("d/m/Y h:i");
$query = "INSERT into berichten ( 
topic_id, poster, bericht, datum) 
VALUES 
('". $topic_id ."', '". $_SESSION['gebruikersnaam'] ."', '". $bericht ."', '". $datum ."')"; 
mysql_query($query) or die(mysql_error()); 
header("location: index.php?p=forum"); 
?>  <?php include("config.php"); $bericht = nl2br($_POST['bericht']); $topic_id = $_POST['topic'];    $datum = date("d/m/Y h:i"); $query = "INSERT into berichten ( topic_id, poster, bericht, datum) VALUES ('". $topic_id ."', '". $_SESSION['gebruikersnaam'] ."', '". $bericht ."', '". $datum ."')";   header("location: index.php?p=forum"); ?>
   
 Wat is hier nu fout aan? De datum blijft steeds maar weer als 0000-00-00 00:00:00 weergeven...
 
 Ziet iemand de fout?
 |