Originariamente inviato da heartbreaker777
Avendo risolto il problema dell'aggiungere prodotti...
Ora sono incappata in un altro problema...
Faccio la modifica... clicco su UPDATE ed ecco che esce...
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
La sezione di codice PHP che si riferisce all'UPDATE e' questa:
function UpdateProduct($client, $data, $descriere1, $descriere2, $servicii, $site, $path_det, $path_off)
{
$strSql = "Update products SET client='".$client."', data='".$data."', descriere1='".$descriere1."', descriere2='".$descriere2."', servicii='".$servicii."', site='".$site."', path_det='".$path_det."', path_off='".$path_off."'";
$strSql = $strSql . " WHERE id = " . $id;
return $strSql;
}