| | |
Help building VIN decoding website
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jun 2008
Posts: 23
Reputation:
Solved Threads: 0
Hello everyone, I've been trying to build a website with a VIN decoder for a few weeks now and I'm getting no where. I have no experience with PHP but have been doing a lot of reading. My question is how do I split a form into different pieces that can be decoded seperately. For instance: VIN is 4H27F2G111111. I want to take 4 and decode it; H decode it; 27 decode; F decode; 2 decode; G decode; 111111 decode. I haven't been able to learn how to do this and I've been searching for quite some time. If anyone knows how I can accomplish this, I'd be extremely grateful!
Thank you,
Arthur Ash III
Thank you,
Arthur Ash III
•
•
Join Date: Jun 2008
Posts: 23
Reputation:
Solved Threads: 0
Hey Keith, thanks for the response. The format depends on the make of the car but they are standardized for each make or year range. For example, the VIN format I posted above would be correct for all 1972-1980 GM vehicles. If I had code to work with, I could then adopt it to work with the other formats. I'm glad you said it will be easy because so far I've tried a lot to no avail.
Thanks,
Arthur
Thanks,
Arthur
•
•
Join Date: Jan 2008
Posts: 74
Reputation:
Solved Threads: 5
Are you doing this for experience or for something else? As if you use google, there are some already out there.
Download, look at the code, and play with it from there...
http://webscripts.softpedia.com/scri...der-28375.html
Download, look at the code, and play with it from there...
http://webscripts.softpedia.com/scri...der-28375.html
•
•
Join Date: Jun 2008
Posts: 23
Reputation:
Solved Threads: 0
I've seen that before but I was wanting to make my own. It will focus on old cars. That VIN decoder only does the newer 17-digit VINs which means only cars from 1981-present can be decoded. There's isn't a place out there that has a VIN decoder that will decode ALL old car VIN's and that's what I'm aiming for.
Thanks,
Arthur
Thanks,
Arthur
•
•
Join Date: Jun 2008
Posts: 23
Reputation:
Solved Threads: 0
I get what you are saying but I've not been using PHP for long and I don't know how to implent this into my code. Is there anyway you could give me an example using the VIN format I listed above? When you say database, do you mean SQL? I wasn't planning on using a database but I could make one if that would be best. Is there a way to write the variables into the PHP code or is it best to use a database?
Thank you,
Arthur Ash III
Thank you,
Arthur Ash III
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.
PHP Syntax (Toggle Plain Text)
$vin = '4H27F2G111111'; $part1 = substr($vin,0,1);//returns 4 $part2 = substr($vin,1,1);//returns H $part3 = substr($vin,2,2);//returns 27 //i think you can figure the rest out. //after you get each piece. run them through a database to find what they stand for.
![]() |
Other Threads in the PHP Forum
- Previous Thread: sos help
- Next Thread: mssql connection problem
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions simple sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






