I have been very confused on what is wrong with this php code, it only gives me blank pages.
$sql = "INSERT INTO `mosys`.`allcheck`
(`cDate`,
`cCheckNo`,
`cClass`,
`cPayee`,
`cPayeeAddress`,
`cSender`,
`cSenderAddress`,
`cAmount`)
VALUES (".getDateTime()."',
'$_POST[cCheckNo]',
'$_POST[cClass]',
'$_POST[cPayee]',
'$_GET[cPayeeAddress]',
'$_POST[cSender]',
'$_POST[cSenderAddress]',
'$_POST[cAmount]');";
}
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}
}
What seems to be wrong?
insertdoesn't return anything.