Please guys I need you help on updating mysql database. Below is the code:
$sql_1 = "UPDATE tbl_courier
SET status = '$status',
comments = '$comments',
aarrival = '$aarrival',
transferdate = '$transferdate',
bl = '$bl',
`containerno` = '$containerno',
eta = '$eta',
rev_name = '$Receivername'
WHERE cid = $cid
AND cons_no = '$cons_no'";
dbQuery($sql_1);
Every column updates with the new input except containerno, eta and rev_name
What have i done wrong please help...
error_reporting(E_ALL); ini_set('display_errors', 1);if you're not already doing so.aarrivalare you sure that column isn't namedarrival? Plus, make sure thecidcolumn is aninttype. Also, GigaWatt mentioned in the now-deleted answer, about removing the backticks around thecontainerno. You should also make sure that your elements are indeed named with no typos, if this is coming from a form. You'll need to show a bit more code. As it stands, your question is unclear.