Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Dropdown filter box issue in php

dropdown filter box not working

8:28 pm on Jan 2, 2013 (gmt 0)

New User

joined:Jan 2, 2013
posts: 1
votes: 0

Hi all,

I am working on adding a dropdown box in a php page which displays data from MySQL table, so that selecting an option in that dropdown box will run a query in the PHP page and display only certain data in the page, i.e., the dropdown box will act as filter box. But the PHP pages are reached only through logging in, and each of these pages start a session when they are run.

Initially I made a simple task of just echoing a message when a dropdown box option is selected, eg., when I select "Windows" from the dropdown box the php page will print/echo "Windows". But this didnt work and after trying several things, I saw that it echoes the option as expected, only when I comment out the "session" syntax, and I goto the PHP page without logging in it, i.e., without going to the index page of the website and logging in it, if I goto the expected page directly then the dropdown box echoes the expected message properly.

So without initiating a session this works, and I need to find a way to display the expected things in the page even after using "session" in it and logging to it. Please let me know if you need any more information.
6:44 pm on Jan 4, 2013 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 2

Welcome to WebmasterWorld, beginner101.

It sounds like you are getting an error some place that is causing your code logic to work unexpectedly. Have you looked at your errors to see what is happening?
1:49 pm on Jan 8, 2013 (gmt 0)

Junior Member

5+ Year Member

joined:Nov 16, 2008
posts: 136
votes: 0

with a bit of code you did it would be easier for us to help you! Because with what i read it seems that you're close to the solution!

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members