happyavocado
06-21-2009, 12:13 PM
hi there
I need to create a "refine your search" function on a php page which consists of three dropdown boxes (box 1:brand, box 2: price, box 3:country) and when the user presses the "GO" button the correct products are pulled from corresponding fields in my MYSQL database and outputted onto the page.
The dropdown boxes do not need to populate from the database - they are static.
My php is basic, but I can write php functions to pull from my database onto a page. I think I might need some other scripts, such as JavaScript to do this too..???
My problem is pulling it all together and knowing where to start. I can't get my head around the fact that normally, your php page instructs to open your database, pull from it, and the products are returned on the page once it has loaded for the user, without any of the php instructions visible in the source code. With a dropdown, I don't understand how it all comes together, as the php instruction to pull from the databse will not take place until the user presses the "GO" button! Help - v confused!
Calling experienced coders....
Can anyone help, or point me in the direction of a tutorial (not an overview of php or similar) that goes through the process?
Many thanks in advance :)
I need to create a "refine your search" function on a php page which consists of three dropdown boxes (box 1:brand, box 2: price, box 3:country) and when the user presses the "GO" button the correct products are pulled from corresponding fields in my MYSQL database and outputted onto the page.
The dropdown boxes do not need to populate from the database - they are static.
My php is basic, but I can write php functions to pull from my database onto a page. I think I might need some other scripts, such as JavaScript to do this too..???
My problem is pulling it all together and knowing where to start. I can't get my head around the fact that normally, your php page instructs to open your database, pull from it, and the products are returned on the page once it has loaded for the user, without any of the php instructions visible in the source code. With a dropdown, I don't understand how it all comes together, as the php instruction to pull from the databse will not take place until the user presses the "GO" button! Help - v confused!
Calling experienced coders....
Can anyone help, or point me in the direction of a tutorial (not an overview of php or similar) that goes through the process?
Many thanks in advance :)