View Single Post
Old 04-17-2006, 10:13 AM  
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
another PHP/MySQL question

I am creating links for mysql data..

my code looks like this

Code:
echo "<a href=".$row['url']." title=".$row['title'].">".$row['name']."</a>";
now, sometimes there is no 'url' data for that entry.. how do make it so if there isn't, it doesn't display that entry as a link?

thanks!
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote