Hi Giu,
I have an HTLM image field but I can’t use it under on Ajax events becouse SC do not see it on the list of available fields of OnClick …
My willing is to have the possibility to run a PHP code once clicked the icon image
In simple words I have to add quantity inserted by user to a selected_product table in order to trasfor it later into an RFQ or and ORDER
Something like that:
[order_date] = date(‘Y-m-d’);
$sql_insert_selected = "
INSERT products_selected
(ProductID, CustomerID, ProductName, SupplierID, CategoryID, CompanyID, SelectedDate, Quantity, UnitPrice , ProductID_altern)
VALUES
(’[glo_ProductID]’, ‘[glo_CustomerID]’, ‘[glo_ProductName]’, ‘[glo_SupplierID]’ ,
‘[glo_CategoryID]’, ‘[glo_CompanyID]’, ‘[order_date]’ , [glo_Quantity_row], [glo_UnitPrice], ‘’)
ON DUPLICATE KEY UPDATE Quantity = Quantity + [glo_Quantity_row]";
sc_exec_sql( $sql_insert_selected );
On other post Hiram has suggested a solution out of the SC box too.