I have two queries that I want to exclude certain records from the result. They are:
$query2 = 'update vtiger_products set unit_price = unit_price * 1.30 where productname NOT LIKE "Trip Charge %" ';
and
$query="INSERT INTO
vtiger_pricebookproductrel
( pricebookid
, productid
, listprice )
select (".$fieldvalue1.")
, productid
, (unit_price *.769) * (".$fieldvalue2.")
from vtiger_products Where productname NOT Like ('Trip Charge %')" ;
They both appear to work for the "Trip Charge" portion. How do i add another field to exclude? I need a wildcard in each exclusion. I have tried everything I could think of.
Thanks for looking
$query2 = 'update vtiger_products set unit_price = unit_price * 1.30 where productname NOT LIKE "Trip Charge %" ';
and
$query="INSERT INTO
vtiger_pricebookproductrel
( pricebookid
, productid
, listprice )
select (".$fieldvalue1.")
, productid
, (unit_price *.769) * (".$fieldvalue2.")
from vtiger_products Where productname NOT Like ('Trip Charge %')" ;
They both appear to work for the "Trip Charge" portion. How do i add another field to exclude? I need a wildcard in each exclusion. I have tried everything I could think of.
Thanks for looking