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.

Did you know?Explore Trending and Topic pages for more stories like this.
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

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

Reditecting pages based on logic
Newbie here, apologies in advance!

I am trying to use the header function to forward one of a

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps

Error in SQL Syntax HELP!!!
I have this page:

Code: <?php

session_start();

//connect to server and s

INSERT data problem!
After having an string with apostrophes ', double quotes " or any other special characters, suc

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

Recognising Revenue daily
Hello.
Has anyone come across daily recognition of deferred income?
We want to implement R

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

How would I convert this into code using an if statement?
ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not g

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