SimpleJ
asked on
Mysql with URL keyword
Hello.
I have a "home made" php-mysql website available through http://mydomain.com.
I want to achieve the following:
Let`s say I enter the url : http://mydomain.com/something
I would like to read this url, get the part of a url called "something" and lookup this word("something") in mysql database.
I`ve created a new folder called "something" containing index.php which reads url, gets the part of url "something" and querys a select.
But this is not a good solution when there are a lot of words in a database. Does anyone have a solution how to achieve the same, without having to create a directory for each word in database?
thx
I have a "home made" php-mysql website available through http://mydomain.com.
I want to achieve the following:
Let`s say I enter the url : http://mydomain.com/something
I would like to read this url, get the part of a url called "something" and lookup this word("something") in mysql database.
I`ve created a new folder called "something" containing index.php which reads url, gets the part of url "something" and querys a select.
But this is not a good solution when there are a lot of words in a database. Does anyone have a solution how to achieve the same, without having to create a directory for each word in database?
thx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
used this reference : http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html