MySQL Forums
Forum List  »  Newbie

Re: Checkboxes
Posted by: Stuart Roe
Date: August 13, 2005 10:46AM

Sage Adams wrote:
> In the DB I've got a field called
> ready_for_enrollment. The datatype is
> enum('yes','no'). Will this work?
>
Yes, but you'll need to change your code 'if ($ready_for_enrollment)' to read something like 'if( strcasecmp($ready_for_enrollment,'yes')==0)'

Assuming that you have queried the db and set $ready_for_enrollment from the appropriate column.

Options: ReplyQuote


Subject
Written By
Posted
August 12, 2005 06:33PM
Re: Checkboxes
August 13, 2005 10:46AM
August 15, 2005 05:24PM
August 16, 2005 11:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.