Re: hiding blank MySQL results?
| From: | Shooter | Date: | Sat, 05 Jan 2002 05:24:31 +0000 |
| Subject: | Re: hiding blank MySQL results? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15436@lists.php.net to get a copy of this message | ||
i would suggest in your while you do someting like this
while($myrow=MySQL_fetch_array($result))
{
$time=$myrow["time"];
if ($time =="")
{$time ="Sorry No Result";
}
echo "$time";
if u get my drift ? ?
Nei;l
----- Original Message -----
From: Nathon Jones <nathonjones@kirkmoor.com>
To: <php-db@lists.php.net>
Sent: Friday, January 04, 2002 5:12 PM
Subject: [PHP-DB] hiding blank MySQL results?
> 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
> nathonjones@kirkmoor.com
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>