Thanks for all your help, but I figured out what I did wrong

I was calling the memberNotes field using

 echo $get_detail->Fields("memberNotes") 

so when I replaced $memberNotes in the script with
$get_detail->Fields("memberNotes") it worked like a charm

 If ($get_detail->Fields("memberNotes")) {
     $notes = "<div align=left><font
size=-1><b>Notes:</b></font></div>";
            } else {
     $notes = "";
            }

Dumb error on my part. 

Thank you very much for your patience,

Ed


> -----Original Message-----
> From: Jason Wong [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 05, 2002 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Easy Question -- Show/ Hide text based on 
> output of query
> 
> 
> On Wednesday 06 February 2002 02:53, Edward R. Bailey wrote:
> > Sorry -- Here it is
> >
> >
> >  <?php If ($memberNotes) {
> >      $notes = "<div align=left><font 
> > size=-1><b>Notes:</b></font></div>";
> >            } else {
> >      $notes = "";
> >            }
> >  ?>
> >
> > Then I call $notes using --
> >
> > echo ($notes)
> 
> I meant your *whole* script -- never mind, have you tried 
> echo($memberNotes) 
> to see what that contains? Are you sure it doesn't contain 
> spaces or other 
> non-visible characters?
> 
> 
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> 
> /*
> "All language designers are arrogant.  Goes with the 
> territory..." (By Larry Wall) */
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to