Jump to content

First Column is always 0 in the table


Taku

Recommended Posts



if(isset($_POST['Input']))
{
$cl = mysql_real_escape_string($_POST['clt']);
$c = mysql_real_escape_string($_POST['ct']);
$cb = mysql_real_escape_string($_POST['cbt']);
$cc = mysql_real_escape_string($_POST['cct']);


if(!$cl OR !$c OR !$cb OR !$cc)
{
echo '<script type="text/javascript">alert("Please fill up the form")</script>';
require "custodian_man.php";
}
else
{
$SQL = "INSERT INTO f_beg (Cafe_Latte, Chocolate, Creme_Brulee, Cookies_Cream)
VALUES( '','$cl','$c','$cb','$cc')";
echo("Success");
$result = mysql_query($SQL) or die('error'.mysql_error().'in query'.$SQL);


}
}

 

here it is sorry `.` it is working fine but in the table the 1st value is always placed in the 2nd column making the last value to be gone

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.