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?

#170631
__
Participant

but nothing is displayed.

Meaning, just a white screen? That means there is a fatal error, and PHP is configured not to display the message. Look in your error logs, or, enable error reporting while you troubleshoot.

In the meantime, take a second look at your code*: you choose a query, but you never execute one. Then you try to fetch a result from a variable that doesn’t exist.

* sorry I didn’t mention this earlier; I assumed the code you posted was an excerpt.

What do you suggest instead

The snippet I posted above was the standard while format.

while( $board = mysql_fetch_array($result) ){

    /* rest of code goes here */

}