On Sat, 5 Jan 2002 01:12:21 -0000
Nathon Jones "Nathon Jones" <[EMAIL PROTECTED]> wrote:

> Hi.
> I have a PHP page calling a set of results from a MySQL database. 
> They
> appear in the following format on the results page:
> Title
> Description
> Link
> Problem I'm having.  When a db record has an empty field (for
> example, no
> description), the results page leaves a gap where the description
> should be.
> How do I do a "hide if empty" thang to stop the gaps appearing?
> Really appreciate the help.
> Regards
> nathon

When I do something like that, I test the results before displaying
the page or the page section.  Use your PHP to check the results. 
If empty, then don't display.

Rarely do we find men who willingly engage in hard, solid thinking. 
There is an almost universal quest for easy answers and half-baked
solutions.  Nothing pains some people more than having to think.
  --Martin Luther King, Jr.


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to