I'm trying to get better looking search results from my DBMan db. Ideally, I'd like the search results to resemble a business card when the approprate search criteria are met.
The problem: when a record does not have information included for a certain field, there is a blank line left in the search results. It looks something like this:
John Q. Public
123 Main St.
Los Angeles, CA 90245
213-555-1212
john@whatever.com
(where the blank lines would be a empty second address field and an empty fax field respectively).
I've experimented with having <BR> tags included in the database data itself, and that works to a degree, but that method breaks down when you do a search on a field and the URL encoding changes <BR> to gibberish and it can't make a match with anything in the database.
Any thoughts?
The problem: when a record does not have information included for a certain field, there is a blank line left in the search results. It looks something like this:
John Q. Public
123 Main St.
Los Angeles, CA 90245
213-555-1212
john@whatever.com
(where the blank lines would be a empty second address field and an empty fax field respectively).
I've experimented with having <BR> tags included in the database data itself, and that works to a degree, but that method breaks down when you do a search on a field and the URL encoding changes <BR> to gibberish and it can't make a match with anything in the database.
Any thoughts?