View Single Post
Join Date: Jun 2007
Posts: 1,225
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 166
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: Help building VIN decoding website

 
0
  #9
Jun 3rd, 2008
i was thinking of using a database (mysql,ect.) to store the meanings of each piece of the vin number. (for decoding the vin) i don't know the specifics so this may not be needed.

  1. $vin = '4H27F2G111111';
  2. $part1 = substr($vin,0,1);//returns 4
  3. $part2 = substr($vin,1,1);//returns H
  4. $part3 = substr($vin,2,2);//returns 27
  5. //i think you can figure the rest out.
  6.  
  7. //after you get each piece. run them through a database to find what they stand for.
Reply With Quote