Using mod rewrite with PHP and MySql

Hi Everybody,
Not sure if this is the correct section, but I guess somebody will be able to help.

Basically, I’m trying to make search engine friendly URLS, so I plan an using the following format

Is there a for me to do this using mod rewrite? The category will be different for a lot of links, as will the item-name and item-id. Basically, I want a way of sending all URLS in this format to a file called displaydetails.php, I guess I can then parse the URL and display the information I want to display.

Does anybody know the entry I need to place in my .htaccess to achieve this?

Thanks in advance

Please do not double-post. Thread to be continued here.