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

RSS feed - FeedList for WordPress
Hi,

I'm trying to alter the FeedList plugin for WordPress so that I can click on the title of

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

Access database inside of a validation class
Hello,

For quite some time, I have been using functions to validate form input and access the

Day of week
I am using PHP version 5.0.5
I have a varaible ($DATE (date format yyyy-mm-dd)) that is being inc

Syntax Help
I'm trying to make a form that edits a php file which contains config settings. I'm using strings t

Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins.

But

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

insert/update functions for mysql, what do you think?
I am working on two really simple functions that automatically generate (and execute) insert and upd

Select Rows as Columns..
is there a way to select COLUMN_NAME from user_tab_columns where table_name='TABLENAME';
and ha

PHP Thumbnail Creation
Ok so i use this function to create thumbnails:

Code: function createthumb($name,$filename,$n

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