Diniel Posted December 17, 2004 Share Posted December 17, 2004 "Simple if you know how"... I'd like to be able to grab the category for a page such as www.domain.com/catalog/index.php?cPath=43_50_134 How can I capture just the 134? If I use $_GET['cPath'] then I get 43_50_134. I guess I need to have a line of PHP to ignore everything up to and including the last _, but I don't know how to go about that. I'd very much appreciate a couple of minutes of your time if you know how to get that going :) Link to comment Share on other sites More sharing options...
burt Posted December 17, 2004 Share Posted December 17, 2004 echo $current_category_id; Link to comment Share on other sites More sharing options...
Diniel Posted December 17, 2004 Author Share Posted December 17, 2004 Ah excellent, thank you... more simple than I thought! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.