Hi,
I am using the standard Update command as per below:
$conn = db_conn_Write();
$myQuery = "update vb_products
set price = '".$pr1."',
active = '".$cb1."',
specialprice = '".$pr2."',
specialactive = '".$cb2."',
uom = '".$uom."'
where vb_prod_id = '".$vb_prod_id."'";
$result = $conn->query($myQuery);
Below here is the connection function for the database:
function db_conn_Write() {
$result = new mysqli("localhost", "username", "password", "table");
if (mysqli_connect_error()) {
$text = 'Could not connect to database server [W-m]';
throw new Exception($text);
exit();
} else {
return $result;
}
}
This all works fine on my windows development site at home (same versions of PHP and MYSQL), however when I ftp the files to the production environment, all the screens work fine the only failure (no visual error messages) is the actual update to the database.
When running the update command as listed in PHPMyAdmin the data updates.
Any clues would be much appreciated.
Thanks.