On Wednesday 06 February 2002 00:03, Edward R. Bailey wrote:
> Hi,
> I am working on a page the displays the output of a query in a table and
> I only want to show the field labels that have corresponding output from
> the database. I am only really concerned with the last label in the
> table.
> The label is called "Notes" and the corresponding field in the database
> is "memberNotes"
> So I wrote the following script where I think I am saying if memberNotes
> returns any value then print the output of $notes in the table cell
> where it is called, but nothing happens and the output of $notes is not
> displayed regardless whether "memberNotes" has any output.
> <?php If ($memberNotes =='1') {

What is $memberNotes supposed to contain? If it is supposed to contain notes 
on members then surely it can't be '1' all the time?

I think you probably want:

  if ($memberNotes) { ...

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

Where is John Carson now that we need him?
                -- RLG

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

Reply via email to