RE: query question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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/



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux