Ok. Maybe I should start over. My entire website is built with html and some flash, but for my inventory page I made a mySQL database called boatinventory with table boats.
I want to display the inventory items from my database and make the database searchable by a form for my clients. I am a PHP amateur and would really appreciate the opportunity to learn. While I could pay someone to do this, 1. I don't have the money too, and 2. i've built the rest of the website on my own using dreamweaver, I'm sure I can do this with a little guidance.
I already have the database made. It has the following fields:
HIN (this is the product identification number)
date_added
availability
location
year
make
model
condition
hull_material
hull_type
length
beam
draft
dry_weight
max_capacity
fuel_type
engine_make
engine_type
horsepower
number_engines
trailer
pix
pix2
pix3
pix4
pix5
pix6
price
description
additional_features
This is what I need to accomplish.
I’ve created a search form for my clients that have the following options:
Check box option to decide if they want to view new or pre-owned boats
Check box option to decide what hull material, either aluminum or fiberglass
A drop menu that let’s them decide what Manufacturer they prefer: the options are Contender, Century, Alweld, Hydra-Sports, Hewes, Cobia, Maverick, Pathfinder, and Twin Vee
The final form field is a two text fields that allows them to indicate a price range (from one price to another)
It’s essential that if one option isn’t checked, the form moves to the next option to query the database, but also if one option is checked and the next option is also checked, that the form queries the database for all options checked and displays in the main content area of the page. The search form is in the sidebar.
Before my clients even touch the search form, I want to display all items from inventory in the main content area of the page and include only certain fields from the database. I want to show a picture of each item in inventory along with the year, make, model, location, condition, engine make, price, and a button that will take the client to a detail page for that item and display all data. I want to show at least 5 items per index page with a previous and next option to move through all inventory. After my clients make their selection, all inventory disappears and only records that match their selection criteria appear in place of the entire inventory.
Is this something anyone can help me with? I don't necessarily need to use table to display the data, but because I don't know anything else...this is what makes sense.