I have a table called Product. I am executing an update statement which does not error and does not update the data either!
$query="UPDATE Product SET ProdName ='" . $this->prodName . "', ProductCategory_ProdCategory = '" . $this->ProductCategory->productCategory . "', ReleaseDate = '" . $this->releaseDate . "', ProdDescription = '". $this->prodDescription . "' WHERE Product_ProdId = " . $this->prodId;
$result=$db->executeQuery($query) or die(mysql_error());
The code produces the following update statement :
UPDATE Product SET ProdName ='Additional Garter1', ProductCategory_ProdCategory = 'GARTR', ReleaseDate = '2006-09-14 00:00:00', ProdDescription = 'Some Desc1' WHERE Product_ProdId = 19
Any ideas?
$query="UPDATE Product SET ProdName ='" . $this->prodName . "', ProductCategory_ProdCategory = '" . $this->ProductCategory->productCategory . "', ReleaseDate = '" . $this->releaseDate . "', ProdDescription = '". $this->prodDescription . "' WHERE Product_ProdId = " . $this->prodId;
$result=$db->executeQuery($query) or die(mysql_error());
The code produces the following update statement :
UPDATE Product SET ProdName ='Additional Garter1', ProductCategory_ProdCategory = 'GARTR', ReleaseDate = '2006-09-14 00:00:00', ProdDescription = 'Some Desc1' WHERE Product_ProdId = 19
Any ideas?