Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Question RE: explode()


gdfwilliams

Recommended Posts

I am in the process of making some additional modifications to the User Tracking Alpha contribution.

 

If you've not checked it out yet, do at: http://www.oscommerce.com/forums/viewtopic.php?t=25160

 

This is a screenshot of the sort of data included on the results page:

user_tracking.gif

 

Basically, I want to make the above layout a bit more user-friendly by inserting Category or Product names (where applicable) rather than just the path. This would only have to happen for index.php w/ appended cPath and product_info.php w/ appended product_id.

 

So, I have to take a string like one of these:

/index.php?cPath=22

/product_info.php?products_id=87

 

And get it into a format that can be used to query categories_description or products_description respectively.

 

I thought that perhaps the explode() function could be used, but I thought I'd pick the community's collective brain prior to attempting.

 

Any thoughts?

 

Thanks,

 

Greg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...