Hi There,
I have a where clause that is searching for a result that sometimes has numbers and letters in it.
For Example 3680c01 when I click on that result it takes me to an error - Unknown column ‘3680c01’ in ‘where clause’. If I click on a number that says 3680 it includes all the results from 3680 as well as 3680c01. I tried doing a search to find an answer but I cannot seem to find one that works for my situation.
[php]SELECT Orders.Order_Date_ID, Orders.Invoice_Number, Colors.Color_Name, Parts.Part_Name, Orders.PartID, Orders.Qty
FROM Stores
LEFT JOIN Parts
LEFT JOIN Colors
LEFT JOIN Orders ON Colors.ColorID = Orders.ColorID
ON Parts.PartID = Orders.PartID
ON Stores.StoreID = Orders.StoreID
WHERE Orders.PartID=$iPartID;[/php]