I have a piece of code that im working and had a question on a spot. I have a certain section that if the db has one set of numbers, it displays one link. If it displays another code, it shows a different link.
The problem I have is now other then the first two digits each code will be different and was wondering if there was any type of "starts with" or "AB***" code that tells the script to only look at the first two letter when checking a db ?
Example;
DB Entry: AB1234567890123456 => http://www.test.com
or
DB Entry ZY12345678979879879 => http://www.example.com
The problem I have is now other then the first two digits each code will be different and was wondering if there was any type of "starts with" or "AB***" code that tells the script to only look at the first two letter when checking a db ?
Example;
DB Entry: AB1234567890123456 => http://www.test.com
or
DB Entry ZY12345678979879879 => http://www.example.com
