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"; Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/ 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. >_< Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660207 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 Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660209 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? Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660211 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 Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660215 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 Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660242 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 Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660313 Share on other sites More sharing options...
skipper Posted October 8, 2008 Author Share Posted October 8, 2008 Bump Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660326 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>"; } Link to comment https://forums.phpfreaks.com/topic/127599-i-need-help-adding-a-link-within-a-php-file-heres-what-i-have/#findComment-660395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.