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

Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i

Getting rid of quotes when printing data
Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function esca

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

Adding meta tags under Zend FW
Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would

Remore client postprocessing phase getting dump SAPSQL_ARRAY_INSERT_DUPREC
Hello Expects,I have started remore client copy. Data was copied successfully. but while running pos

Changing color in GD via variable?
Hey guys, I'm new here. x)

I'm very much a noob when it comes to PHP, but I'm trying to learn

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

New Search Engine
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

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