bugfix syntax error
This commit is contained in:
parent
967d9941b3
commit
ac17debf8b
@ -77,7 +77,7 @@ class Product
|
|||||||
|
|
||||||
$sql = "INSERT INTO llx_product (datec, fk_user_author, fk_product_type, price)";
|
$sql = "INSERT INTO llx_product (datec, fk_user_author, fk_product_type, price)";
|
||||||
$sql .= " VALUES (now(),".$user->id.",$this->type, " . ereg_replace(",",".",$this->price) . ")";
|
$sql .= " VALUES (now(),".$user->id.",$this->type, " . ereg_replace(",",".",$this->price) . ")";
|
||||||
$result = $this->db->query($sql)
|
$result = $this->db->query($sql);
|
||||||
if ( $result )
|
if ( $result )
|
||||||
{
|
{
|
||||||
$id = $this->db->last_insert_id();
|
$id = $this->db->last_insert_id();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user