RE: [PHP-DB] query question
| From: | John W. Holmes | Date: | Tue, 20 May 2003 22:51:44 +0000 |
| Subject: | RE: [PHP-DB] query question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27933@lists.php.net to get a copy of this message | ||
> Query question I have a table set up with MySQL on yahoo webhosting
for
> advertisements. When a search is done through the site by zip code
text
> results return. However, I am needing to insert a link inside certain
> results for clients that have paid for an ad to be linked to their
company
> result. The question I have is; Is it possible to query the alt text
that
> you insert with an imageex: <img src="imagename.jpg" alt text="alt
text">
> If so, how would I do that and how do I have links in the results of
the
> searches. example of search results:
> http://www.dirtjobs.com/needresults.php Let me know if any
> other info
is
> needed to answer this question. Thanks Michelle
You're example page doesn't have anything on it, btw...
All you need is a simple if() :
If($user_paid)
{ echo "data w/link"; }
else
{ echo "data w/o link"; }
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/