Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Dropdown box on php page, pulled from MYSQL database
Old 06-20-2009, 02:14 PM Dropdown box on php page, pulled from MYSQL database
Junior Talker

Posts: 2
Trades: 0
Hi there

I'm not sure if I'm posting this in the correct section...

I need to create three dropdown boxes (box 1:colour, box 2: price, box 3:brand) and when the user presses "GO" they are returned with the correct information, pulled from corresponding fields in my MYSQL database.

For example, colour: silver, price £100-£200, brand:samsung...should return 5 items on the page.

I do not need the dropdown boxes to populate depending on ther previous selection - they are static, so to speak.

I am not sure how to do this and appreciate any help at all, even if it is sending me to a tutorial on how to do this.

Many thanks in advance
roseuk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-21-2009, 06:35 AM Re: Dropdown box on php page, pulled from MYSQL database
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
Basically you need to build a query up using the dropdown values

how much PHP do you know
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-21-2009, 07:29 AM Re: Dropdown box on php page, pulled from MYSQL database
Junior Talker

Posts: 2
Trades: 0
Thanks fo your reply.

My page son my website are all built in php to pull from my database. I only know enough php to perform the functions I need, but can learn.

I'm not sure what you mean by "Basically you need to build a query up using the dropdown values"...please can you elaborate?

Or can anyone send me to a tutorial that covers this EXACT issue?

Many thanks
roseuk is offline
Reply With Quote
View Public Profile
 
Old 06-21-2009, 10:22 AM Re: Dropdown box on php page, pulled from MYSQL database
Junior Talker

Posts: 3
Trades: 0
You can read this tutorial:

http://www.plus2net.com/php_tutorial/list-table.php
__________________

Please login or register to view this content. Registration is FREE
pumadice is offline
Reply With Quote
View Public Profile
 
Old 06-22-2009, 07:06 AM Re: Dropdown box on php page, pulled from MYSQL database
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
pumadice

this is not what's required although could be used to make it a nicer function

When you query a db through PHP you pass SQL to the database

If your wanting to drive your query through chosen options of a select dropdown then you have to build the SQL dynamically before finally submitting the query to the db

Its a bit tricky if you don't know PHP

Although i don't help for free on specific projects I can help if you want to learn PHP which will improve your understanding?
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dropdown box on php page, pulled from MYSQL database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14742 seconds with 12 queries