I know that this is probably something simple, but I am still learning PHP and can't seem to get past this problem.
I am use MySQL and on one of my tables I have a VARCHAR field that holds the string for a URL.
Here's the problem.
I am selecting the value of this field to generate links to external articles.
If I retrieve a "normal" URL, for example:
http://www.whatever.com
It appears just fine in the address bar.
But, if I try to retrieve a url like:
http://www.whatever.com?id=240
the in the address bar as:
http://www.whatever.com/?id=240
(it places a / right in front of the ?)
Anyone have an idea of what I did wrong?
Perhaps, did I need to format the value of the URL before inserting into and/or selecting from the database?