Log in

View Full Version : mySQL / php



nikomou
10-31-2006, 11:14 AM
I want to be able to find out a products model number/name by taking away the full name of the product, by the name of the manufacture...

for e.g. the full name of a product is Nokia N80... and the make/manufcature is Nokia. If you take away the make, you are left with the model number... N80

The fields "product" and "make" are pulled up from a mySQL database...
Can this be done using a php script?

djr33
10-31-2006, 11:19 AM
Sure.
That's really not complex at all.
There are various ways to do it.
One would be to split at the space character; another would be to split after the keyword of the model, depending on your you're doing this.
Or, since I couldn't tell from the way you phrase it, if you want to put it together, that's really easy.

Just get some basic ideas about php and mysql and you'll be fine.
http://php-mysql-tutorial.com
that should get you started with most of what you need to know. easy to follow... worked for me.

codeexploiter
10-31-2006, 12:40 PM
Another one (http://www.webmonkey.com/webmonkey/programming/php/tutorials/tutorial4.html)