Hello, what am I doing wrong?
It just errors out or posts blanks.
'$edate=implode('-', {$_POST['edate']})',
Is the thing not working
<?php
include_once 'resources/init.php';
$sql="INSERT INTO Client (
firstname,
lastname,
email,
invoice,
company,
arenew,
contact,
wink,
wint,
wind,
vtype,
usera,
yeara,
sdate,
edate,
viprek,
notes)
VALUES
('$_POST[firstname]',
'$_POST[lastname]',
'$_POST[email]',
'$_POST[invoice]',
'$_POST[company]',
'$_POST[arenew]',
'$_POST[contact]',
'$_POST[wink]',
'$_POST[wint]',
'$_POST[wind]',
'$_POST[vtype]',
'$_POST[usera]',
'$_POST[yeara]',
'$_POST[sdate]',
'$edate=implode('-', {$_POST['edate']})',
'$_POST[viprek]',
'$_POST[notes]')";
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}
header("Location: index.php");
mysql_close($con)
?>