I’m a PHP noob. I’d like to do something that seems like it should be simple, but then again, I’m known as an optimist.
What I’d like to do is redirect a user based on the value of a URL query using a mysql table lookup to create the redirection string. For example:
If the URL is http://mysite.com?id1=in then the redirection URL should look like http://othersite.com?id2=out. The mysql database name is urls and the table is redirection. The field names are incoming and outgoing – ‘in’ would be looked up in the field called incoming to find the value of ‘out’ in outgoing.
Also, if the URL is http://mysite.com/in, could the same redirection be created? Any and all help is appreciated.
Steve