if(!empty()) statement
| From: | Sunfire | Date: | Thu, 06 Feb 2003 23:18:08 +0000 |
| Subject: | if(!empty()) statement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134692@lists.php.net to get a copy of this message | ||
hi..
i have a combobox that has members from a mysql database loaded into it..
one of the choices is "select a member to edit" and has a value of "". now
if a person selects "select a member to edit", then an error message shows
up saying they need to select a member to edit and puts them back to the
main menu with a link.. now if they really do pick a member to edit i want
the form to show up.. what i need to know is how do you break/drop out of an
if statement..:
//mysqlstatements here
if(!empty($EditMember)){
//need to skip this or break out of it
}else{
//error section
}
or should i do:
if(empty($EditMember)){
//error message
e}else{
//the form}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003