Forum Moderators: coopster
url.com/page.php?state=NE
So it goes to that page, but I use the state name in the database which is also NE, so I use something like:
<? echo ($statename);?> Page
It shows "NE Page"
I want it to show "Nebraska Page"
I have been trying to figure out str_replace, and can't seem to get it to work. Or if there is another quicker way, any advice is appreciated.
Thanks for the help.
store in user table NE
select longname from states where shortname='NE';
something like that, as long as your state short forms are normalized then it shouldn't be an issue
you could also join them so that when you select you could get the fullname, though this would have to be tested for performance impact.