Jump to content

PHP help: processing a value to a variable and using it in a URL path


ultramagnus

Recommended Posts

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">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.