Getting url adress into code?!?
Posted: Fri May 18, 2007 11:00 am
Hi. I'm trying to make my db call depending on the urladress.
I have a url adress like this:
I want the script to be dynamic so if the cityurl is another it comes into the script automatic. I know it has something to do with "urlencode" but I dont know how?!?!? Please help!
I have a url adress like this:
Now I want to get "marion-city" into my script here:
Code: Select all
mysql_select_db("mydb", $con);$result = mysql_query("SELECT * FROM city WHERE cityurl=marion-city");