I need a bit of help, I have this UPDATE query that isn't updating the records in my database. Maybe it's a small error that I'm missing, something I might have left out tha ta fresh pairs of eyes might pick up easier.
<?php
$message = '<h4 class="alert_success">A Successfully updated '.$_POST['sell_itemBrand'].' '.$_POST['txtModel'].' - '.$_POST['sell_itemType'].'</h4>';
$color = "";
($_POST['colorSel'] =='old' ? $color = $_POST['color'] : $color = $_POST['newColor']);
mysql_query("UPDATE `total_stock` SET `ItemType` = '".$_POST['sell_itemType']."', `ItemBrand` = '".$_POST['sell_itemBrand']."', `ItemModel` = '".$_POST['txtModel']."', `Cost_Price` = '".$_POST['CostPrice']."', `Color` = '".$color."' WHERE `IMEI` = '".$_POST['current_IME']."'") or die(mysql_error());
?>
what is supposed to happen here is a user can update the various fields in the database from a form. The new values entered are put in the various variables and used for the updating.
Thanks.