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

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the sam

Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data

Material xxx does not exist in plant xxx
Dear All,

I am working for a steel project which is repetitive manufacturing.

A problem with my GD class
Hello,

I created a nice (and simple for now) GD class.
The problem is , it works great on

Adding Different Numbers From MySQL
Basically I have a mysql database with a couple prices as the following:

9.99
9.99
9.99

issues verifying if user is logged in
I am having issues when a user logs in via asp Login control, the IsAuthenticated still seems to com

New to PHP and just trying to understand a little code.
I hope I'm not annoying anyone or breaking the rules but I was wondering about this bit of code righ

[Need Help] php timing issues
I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorad

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