PHP-Code:
<?php
$datum = mktime (0,0,0,$intmonth,$intday,$intjahr);
if (isset($_POST['mday']) and $_POST['ddo']=="insert") {
echo "<hr>insertz".$anz;
//datum zusammenbauen
$mdayquery = $DBase->query(" INSERT INTO
".$prefix."_day
(id, eid, start, end, break, date)
VALUES ('',
'".$euserid."',
'".$_POST['start']."',
'".$_POST['end']."',
'".$_POST['break']."',
'".$datum."' ")
}
?>
CREATE TABLE `wn_day` (
`id` int(10) unsigned NOT NULL auto_increment,
`eid` int(10) NOT NULL default '0',
`start` varchar(5) NOT NULL default '0',
`end` varchar(5) NOT NULL default '0',
`break` varchar(5) NOT NULL default '0',
`date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
fehlermeldung:
[COLOR=red]
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9
[/COLOR]
was zum t...... mach ich falsch ?
Kommentar