It is currently Tue Feb 07, 2012 8:41 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to show url instead of text?
PostPosted: Mon Jan 25, 1999 12:19 pm 
How to show url in html where current state is:
print "$row[headline]";, but i'd like to show url instead of text. It should be like that:
print "<a rel="nofollow" href=\"http://$row[url_in_mysql_table]"\>$row[headline]</a>"; but it should occur only if there is any address inserted into mysql table, otherwise it should show only the headline.

Thanks in advance...


Top
  
 
 Post subject: RE: How to show url instead of text?
PostPosted: Mon Jan 25, 1999 12:38 pm 
Sorry I did fid out myself.... but it was worth to ask anyway.....

Thats how:

if ($row[6]>'0'){
print "<a rel="nofollow" href=\"http://$row[url]\">$row[headline]</a>";
}else{
print "$row[headline]";
}

Easy or what?

Tahnks anyway...


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: