.E.G. - general/2035-what-all-subjects-php.html
( also if you want a wildcard Subdomain service, like most sites do as like Blogger.com, that has it's url's as such:
myblog.blogspot.com, that's probably coming this url query:
http://www.blogspot.com/?bget=myblog&ref=0 (usually I'd put this if 1 then assign this to the database >:D
If you catch my drift <end>);
By the way, you cannot just do a Wildcard Subdomain, you must allow for it in the APACHE VirtualHosts.
By the way Wildcards are like this = "%foo%"
Usually considering sql, this can be made for making Search Engines :D
$sql = mysql_query("SELECT * FROM table LIKE = '%$row%'");