Ask a Question related to Dreamweaver AppDev, Design and Development.
-
woodbridge #1
Supress Blank Rows - PHP
I am adding lines of information to committee members drawn from MySQL
database. Not all members have daytime or mobile phone numbers or email
addresses so I dont want blank rows to appear where that is the case. I have
written the following if statements, the idea being that if the rows are not
NULL the data will appear and a break will be applied. However, when I add the
<br> or <br /> tag I get parsing errors, no matter where I write the tags. I
am sure this is just a syntax issue but cant work out what he code whould be.
If i add it at the end of the lines it is fine, but then it throws a line break
even when there is no data. Any help gratefully recieved. Thanks, John
<?php if($rsCommitteeMembers->Fields('day_tel')!=NULL) echo
$rsCommitteeMembers->Fields('day_tel'); ?>
<?php if($rsCommitteeMembers->Fields('mobile_phone')!=NULL) echo
$rsCommitteeMembers->Fields('mobile_phone'); ?>
woodbridge Guest
-
Supress Acrobat error messages
I am merging pdfs using Iac/C# with Acrobat hidden. If I drop in a broken PDF, Acrobat pops up and displays an error message. Is there a way to... -
DataGrid populating blank rows
I have a remote object that retrieves an ArrayList of POJOs. It displays in my datagrid fine. Hoever, when I click a button that retrieves a single... -
How to supress directory listings?
When you enter a URL into the browser (not a .cfm file, for example), it lists the various files and directories. Using Apache, there's a file... -
Printer friendly Pages - Supress URL at the page footer
sounds like clientside issues....not ASP. I'd suggest a different group -- ---------------------------------------------------------- Curt... -
Adding blank rows after a series of records
On Wed, 23 Jul 2003 14:04:49 -0700, "Chuck Dickson" <CDICKSO@USAIRWAYS.COM> wrote: That would be pretty tough. The only way I can think to do... -
David Powers #2
Re: Supress Blank Rows - PHP
woodbridge wrote:
This should do what you want.> <?php if($rsCommitteeMembers->Fields('day_tel')!=NULL) echo
> $rsCommitteeMembers->Fields('day_tel'); ?>
> <?php if($rsCommitteeMembers->Fields('mobile_phone')!=NULL) echo
> $rsCommitteeMembers->Fields('mobile_phone'); ?>
<?php if($rsCommitteeMembers->Fields('day_tel')!=NULL) echo
$rsCommitteeMembers->Fields('day_tel').'<br />'; ?>
<?php if($rsCommitteeMembers->Fields('mobile_phone')!=NULL) echo
$rsCommitteeMembers->Fields('mobile_phone').'<br />'; ?>
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
woodbridge #3
Re: Supress Blank Rows - PHP
David
It does - it was that little full stop I overlooked!! - many thanks indeed, so easy when you know how. John
woodbridge Guest
-
David Powers #4
Re: Supress Blank Rows - PHP
woodbridge wrote:
The PHP concatenation operator (aka period, full stop, dot) is tiny, and> It does - it was that little full stop I overlooked!!
very easy to miss. It causes many people grief when they first start PHP
(myself included).
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest



Reply With Quote

