If i use sql statement such as
select * from table1, then store all the product code
as $prodcode.
Now i want to write something, such as
$newprod2 = substr($prodcod e,2)
then it will store all into $newprod2 but all data only with the first 2 char.
But if i want to ..for example, for all productcode, if there is POxxx or xxPOxx, etc. If there is a PO in product code, then change it to a new code such as
"FGFGF".
how to do this?
thanks.
select * from table1, then store all the product code
as $prodcode.
Now i want to write something, such as
$newprod2 = substr($prodcod e,2)
then it will store all into $newprod2 but all data only with the first 2 char.
But if i want to ..for example, for all productcode, if there is POxxx or xxPOxx, etc. If there is a PO in product code, then change it to a new code such as
"FGFGF".
how to do this?
thanks.
Comment