PHP Programming > Beginners - Learning PHP
Display details by category
(1/1)
Davida:
Hi there, I have a basic classified ads. So far users have to specify things in a description fields. Like if they are selling a car then they have to mention mileage, color, make. And if they are renting a house they mention bedrooms, bathrooms, price a month...
I am trying to make more convenient or fancy sort of by adding more options(fields) to each category.
For ex: If they are selling a car the form will be something like this:
Name:
Make:
Year:
Used:
Color:
Transmission:
.....
If it's a house:
Name:
Bedrooms:
Surface:
Monthly Price:
....
My database table looks like this:
id, title, description, price, make, mileage, surface, bedrooms, name, number, state, city.
If I can only get some ideas to start with. I am completely stuck right now.
Thanks again
richei:
The simplest way i can think of would be to have it in 2 parts. Part 1, the basics - contact info (or if that's all in the account, query for it and have them check to see if its right). Part 2 - the extras. have them first choose the category from a pulldown box, then use ajax to pull the fields from an array or a database table
Navigation
[0] Message Index
Go to full version