PHP & MS Access - Line Break


Posted on 16th Feb 2014 07:03 pm by admin

Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm running into an error that I can't seem to figure out.

Please see the code below:
Code: if (trim($rs->Fields("Address") !="")) {echo "<br />".$rs->Fields("Address")->value;}
I want to skip the line if there isn't an address, but for some reason even if there isn't a record it still outputs a line break <br />.

Thanks

No comments posted yet

Your Answer:

Login to answer
242 Like 26 Dislike
Previous forums Next forums
Other forums

AutoChoosing a CSS file based on URL
Hey everyone,

I have a site that has multiple URLs and CSS files.

Based on the URL tha

PHP onsubmit in the form not going to the fuction.
I have a form through ‘onsubmit’ calling a function validation(). But not going to the

Reading Most Recent CSV File in Directory
I thought I had wrapped this project up, but found out that the program I use to FTP a csv file to m

How to secure my login data to my database?
Hi there,

It may be a stupid question but I don't know how to secure my login data to my data

Help with looping
I have a comma separated list of colors taken from a database ($ICo) and a directory of images named

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

MS Exchange 2007 integration with ECC 6.0
Hello Experts,
We have ECC 6.0 and MS Exchange 2007. We need to integrate ECC 6 and MS Excha

what are '%S%', '%E%'
for example when i see Code: [Select]printf("Hello %srn", $name);
what does %s means

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash