It will be exciting answering php questions
I'm just gonan post the mod_rewrite rule that can be used to change url. i haven't tested this thou.
RewriteEngine On
RewriteRule ^\article\(*)\.html$ /?article=$1 [L]
so basically a url
http://www.example.com/?article=123456 will be converted to
http://www.example.com/article/123456.html by apache before it shows up on the browser address bar.
hmmm. wouldn't be nice if write tutorials on mod_rewrite as well on my website