Home › Forums › Back End › Drop Down Executes Query On Post? › Reply To: Drop Down Executes Query On Post?
May 19, 2014 at 6:29 pm
#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 */
}