I talked to a good friend (http://www.thechrislondonproject.com) and he wrote up this example code to grab the category name.
Now if a user goes to products.php?category_name=modern-lighting, the page knows where to pick up the data from the database.
Now all I have to do is insert the correct regex in the htaccess to convert that url to products/modern-lighting.
Problem has been solved. Thanks for your help.
if ([COLOR="Blue"]$_GET[/COLOR][[COLOR="Red"]'category_name'[/COLOR]]){
$category_name = [COLOR="Blue"]str_replace[/COLOR]([COLOR="Red"]"-"[/COLOR], [COLOR="Red"]" "[/COLOR], [COLOR="Blue"]$_GET[/COLOR][[COLOR="Red"]'category_name'[/COLOR]]);
$results = [COLOR="Blue"]mysql_query[/COLOR]([COLOR="Red"]"SELECT category_id FROM cat WHERE name LIKE '%"[/COLOR] [COLOR="Blue"]. mysql_real_escape_string[/COLOR]($category_name) . [COLOR="Red"]"%' LIMIT 1"[/COLOR]);
[COLOR="Blue"]$_GET[/COLOR][[COLOR="Red"]'category'[/COLOR]] = [COLOR="Blue"]mysql_result[/COLOR]($results, [COLOR="Red"]0[/COLOR], [COLOR="Red"]'category_id'[/COLOR]);
}