Ok, here we go 🙂
I have a database that contains a field with 255 characters. The first three of these characters represents a 'type' of real estate property....for example
A06B03C01D14E11G11H09F03I10K07N06Q07L11
This represents a storefront....because A06 means 'Storefront'
Dont ask me why someone setup the database like this...but they did.
I am creating a form that has a pulldown for 'property type'. The values for each type I have set as the corresponding number.
For example:
<select multiple name="btype" size="6">
<option value="A06">Storefront</option>
</select>
Now, I am not sure how to setup my query to look for just the first three digits.
I tried
select features from database where features = '$btype';
But that produces no results...how should I setup my query?