RE: [PHP-DB] me noob. link if else.. help.
| From: | Paul Ihrig | Date: | Tue, 13 May 2003 19:14:54 +0000 |
| Subject: | RE: [PHP-DB] me noob. link if else.. help. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27717@lists.php.net to get a copy of this message | ||
ok this worked, but man does it ever look clunky..
i want to thank every one who respond to me on & off list..
if you have other ways you would write the same snippet, please post it.
would help me to get a feel for cleaner php.
<?php
if ($row_rsViewLinks['linksLink'] == NULL)
echo $row_rsViewLinks['linksName'];
else
echo "<a
href=\"{$row_rsViewLinks['linksLink']}\">{$row_rsViewLinks['linksName']}</a>
"
?>
sure oi will have some orderby / groupby questions in a few hours.
thanks!
-paul