Jump to content

Recommended Posts

[!--quoteo(post=385603:date=Jun 19 2006, 08:12 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 19 2006, 08:12 AM) [snapback]385603[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Can't you just run a str_replace("-","",$string) on it beforehand?
[/quote]

Went with this:

[code]

$MFG=$row['MFG'];
$MFGa=str_replace(".","%",$MFG);
$MFGa=str_replace("-","%",$MFGa);
$MFGa=str_replace(" ","%",$MFGa);


$MFG1=$row1['MFG1'];
$MFG1a=str_replace(".","%",$MFG1);
$MFG1a=str_replace("-","%",$MFG1a);
$MFG1a=str_replace(" ","%",$MFG1a);

IF ($MFG1a==$MFGa && $MFG1_PNa==$MFGPNa)
[/code]

This got most of them, but I still have some oddballs that I dont 'know what to do with:

here are some examples if anyone has a suggestions - These are all synonimous<sp?>:

3M
3M CO
3M CO-LF
3M COMPANY
3M SCOTCH
3M/TEXTOOL
3M\SCOTCH
3M-LF

ACCURATE SCREW
ACCURATE SCREW CO.
ACCURATE SCREW MACHINE
ACCURATE SCREW MACHINE CO

VISHAY
VISHAY LITEON
VISHAY RESISTORS
VISHAY ROEDERSTEIN
VISHAY SILICONIX
VISHAY SPRAGUE
VISHAY VITRAMON
VISHAY/DALE
VISHAY/LITEON
VISHAY/OHMTEK
VISHAY/TELEFUNKEN
VISHAY-BCC
VISHAY-LITEON
VISHAY-SILICONIX
VISUAL SYSTEMS




This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.