PHP/Mysql search engine

I have a php script that runs a search engine for old cars and parts on my site and I need to add a picture upload that corralates with the item that the people search for. So when the search locates and item in the database there will be a picture associated with the search item.
the url for the search page is here http://hp-car.com/cars/index.php

After that, you choose wether to insert the picture to the database, or to store it on your local HD with some kind of indexed numbering.
The easiest way is to store the uploaded image in a dedicate directory with a name like car1.jpg, car2.jpg.. where the number is the row id of your matching database entry (you have an auto_increment field, do you?).
That's all i think..

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

---- quote ThG:
After that, you choose wether to insert the picture to the database, or to store it on your local HD with some kind of indexed numbering.
The easiest way is to store the uploaded image in a dedicate directory with a name like car1.jpg, car2.jpg.. where the number is the row id of your matching database entry (you have an auto_increment field, do you?).
That's all i think..
----

do NOT store files in your database!! it will cause a huge load on the database wich almost all databases can't handle.
It's a much better idea to store the files in some folder and put a reference to that file in your database.

except from storing files in the database I completely agree with the suggestions made to do what you need.

you need to modify both the submit form and this file.
In the form you add the well-known file input html tag. Here you'll need to handle the file uploaded, whose record is in $_FILES as shown in the link i gave you, at the top where it handles other $_POST data as well.

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users.
This could be anything, from a simple guestbook to a e-Money solution. But what…

Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

The viewer will learn how to create a basic form using some HTML5 and PHP for later processing.
Set up your basic HTML file. Open your form tag and set the method and action attributes.:
(CODE)
Set up your first few inputs one for the name and …