ultramagnus Posted February 6, 2009 Share Posted February 6, 2009 Would anyone have some thoughts on how to code this situation for passing a value to a url path? Currently I have four news pages that displays title, post date and article text based on a table value of BB, SB, TB or LN. I'm working on my index.php page to only show the title and post date on the page. I'm trying to link the article title with news page but I'm having some issues with it. Basically I'm wanting to find the value of the table value (eNewsType) and assign a constant based on that value. i.e. If eNewsType = "BB" then [new variable] = 'baseball'. (SB = "softball", TB = "teeball", LN = "league") I then would like to put that [new variable] in the <a href> path. i.e. <a href="[new variable]_news.php"> Link to comment https://forums.phpfreaks.com/topic/144103-php-help-processing-a-value-to-a-variable-and-using-it-in-a-url-path/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.