Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Need help with $TMPL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Need help with $TMPL

Postby westside » Fri Oct 19, 2012 12:24 pm

Hi guys,

im noob and having this kind of problem.

Code: Select all
if ($TMPL['downurl'] == NULL) { $TMPL['downurl'] = 'Not Available'; } else { $TMPL['downurl'] = ''.$TMPL['downurl']; }


how do i make the output become hyperlink. Thank You!
westside
New php-forum User
New php-forum User
 
Posts: 4
Joined: Fri Oct 19, 2012 12:20 pm

Re: Need help with $TMPL

Postby johnj » Fri Oct 19, 2012 9:55 pm

Code: Select all
if ($TMPL['downurl'] == NULL) { $TMPL['downurl'] = 'Not Available'; } else { $TMPL['downurl'] = ''.$TMPL['downurl']; }

echo "<a href='".$TMPL['downurl']."'>your url</a>";
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Need help with $TMPL

Postby westside » Sat Oct 20, 2012 8:05 am

Hooreyy, it works.. Thank You so much!!!
westside
New php-forum User
New php-forum User
 
Posts: 4
Joined: Fri Oct 19, 2012 12:20 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 9 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron