vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2012, 09:05 AM
Craigr Craigr is offline
Junior Member
 
Join Date: Jan 2005
Posts: 5
Default Page Help

I am trying to add custom php block to a created page.

My page URL is:
cmps_index.php?pageid=codetalkers

Is there any way i can then use this pageid in mysql query? This way i can have different results depending upon the category name.

I want to do:
Code:
  $randamazon = $db->query("
  SELECT amazon_id, amazon_productname, amazon_author, amazon_asin, amazon_rohcat, LEFT(amazon_description,200) AS amazon_description, amazon_filename, amazon_clicks
  FROM " . TABLE_PREFIX . "bb1_amazon
  WHERE amazon_rohcat = codetalkers
  ORDER BY amazon_productname");
Thanks.
__________________
Special Forces Roll Of Honour : http://www.specialforcesroh.com
Unofficial Steven Seagal : http://www.steven-seagal.net
A-Team Resource : http://www.ateamresource.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:25 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.