PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_select_db("mydb", $con);$result = mysql_query("SELECT * FROM city WHERE cityurl=marion-city");
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!
Not really - you need strpos() to get the position in the string of the text you are looking for, then substr() to get it out.
Read through the pages that Oren linked to.