Re: 2 ifs embedded?

From: Date: Fri, 31 Jul 2009 13:56:05 +0000
Subject: Re: 2 ifs embedded?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296108@lists.php.net to get a copy of this message
On Fri, 2009-07-31 at 06:53 -0700, Miller, Terion wrote: > I need this to say : If row notes is not empty and is alpha echo notes > > How do I get the is alpha part in here; > > If (!empty($row['notes'])) { > > > echo(" $trimNotes "); > > } > > I tried..... > > If (IsAlpha($row['notes'])) { > > > echo(" $trimNotes "); > > } > > But it broke the whole script. > > --Terion > > I'm not really sure what you are trying to do here? Is it that you want to have nested queries, or only do something if both conditions have been met? Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#296108) next »