Is something wrong with this code? becaue it doesn’t add any data to my database…
if(isset($_POST['Input']))
{
$cl = intval($_POST['clt']);
$c = intval($_POST['ct']);
$cb = intval($_POST['cbt']);
$cc = intval($_POST['cct']);
$CheckIt = mysql_query("SELECT * FROM f_beg WHERE cl='$cl'");
if(!$cl OR !$c OR !$cb OR !$cc)
{
echo("Please fill up the form");
}
else
{
$SQL = "INSERT INTO f_beg (cl, c, cb, cc)
VALUES( '$cl','$c','$cb','$cc')";
echo("Success");
$result = mysql_query($SQL);
}
}