Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Drop Down Executes Query On Post? Reply To: Drop Down Executes Query On Post?

#170628
__
Participant

if($_POST['value'] == '1'

You don’t have any form fields named value. Your select box is named ratings.

This doesn’t have anything to do with javascript, however. If this is not the problem you are trying to solve, please explain more clearly (e.g., don’t ask “what am I missing?”, but tell us what is going wrong. explain the symptoms!).

WHILE($board = mysql_fetch_array($result)):

while it’s not exactly wrong, I would highly recommend against using php’s alternate syntaxes. They are leftovers from much older versions of the language, and there is no advantage to using them. And they are much harder to read than regular, bracketed blocks.

while( /* condition */ ){
    /* do code */
}