skipper Posted October 8, 2008 Share Posted October 8, 2008 if (!$s[area_title]) $s[area_title] = $m[all_areas]; $vl[category_info] = "$s[category_title] - $s[site_url]/areas/$s[area_title].html"; Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 8, 2008 Share Posted October 8, 2008 I just got the biggest headache I've had in a while from that. Did you write that? You should REALLY space everything out and neaten it up. Also, please use tags when posting code. >_< Quote Link to comment Share on other sites More sharing options...
skipper Posted October 8, 2008 Author Share Posted October 8, 2008 the part in red is what I'm trying to convert into a link, on my site is shows up as is: http://*****.com/areas/MYCITY.html But I'm trying to make it click able so I need to add some code to that red line.. could someone help please? thanks Quote Link to comment Share on other sites More sharing options...
revraz Posted October 8, 2008 Share Posted October 8, 2008 Why dont you use the HTML a href tag? Quote Link to comment Share on other sites More sharing options...
skipper Posted October 8, 2008 Author Share Posted October 8, 2008 Why dont you use the HTML a href tag? I do not know how to make code and I do not know much HTML, or I wouldent have asked for help. Thanks Quote Link to comment Share on other sites More sharing options...
revraz Posted October 8, 2008 Share Posted October 8, 2008 Well it's kinda hare for us to teach you PHP and HTML, we're here more to help if you are stuck with Code. I would suggest first learning HTML. http://w3schools.com/html/html_url.asp Quote Link to comment Share on other sites More sharing options...
skipper Posted October 8, 2008 Author Share Posted October 8, 2008 if (!$s[area_title]) $s[area_title] = $m[all_areas]; $vl[category_info] = "$s[category_title] - $s[site_url]/areas/$s[area_title].html"; How can I change the Red part so that its a Link Quote Link to comment Share on other sites More sharing options...
skipper Posted October 8, 2008 Author Share Posted October 8, 2008 Bump Quote Link to comment Share on other sites More sharing options...
trq Posted October 9, 2008 Share Posted October 9, 2008 Maybe this is what you want, your code makes little sense. if (!$s['area_title']) { $s['area_title'] = $m['all_areas']; $vl['category_info'] = "<a href='{$s['site_url']}/areas/{$s['area_title']}.html'>{$s['category_title']}</a>"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.