Trouble with an ereg
Posted: Mon Aug 26, 2002 9:01 am
Here is my problem im sure its just a syntax problem but if anyone cuold help that would be greatly appreciated.
here is my line of code
if (ereg('^($searchvar).*X*[SML]$',$row['Sku'])) ( >rest of code
The problem is the variavle $searchvar is not bieng passed into the argument (or at least i think so). $searchvar is text ie r2-1001.
if i replace $searchvar with my txt string it works fine but not with the variable in there.. mmm any ideas...
Thanks

here is my line of code
if (ereg('^($searchvar).*X*[SML]$',$row['Sku'])) ( >rest of code
The problem is the variavle $searchvar is not bieng passed into the argument (or at least i think so). $searchvar is text ie r2-1001.
if i replace $searchvar with my txt string it works fine but not with the variable in there.. mmm any ideas...
Thanks