Jump to content

Recommended Posts

I am new at all this.  I am trying to modify the thumbnail page for a php store.  The php code for the thumbnails just gave a thumbnail image of the product and price and a few links.  I've modified it to allow for ordering the product, to see how many products are still in stock and select product options.  I've also have a section where more details about the product are revealed.  It shows a large image of the product and a description of the product.  The variables for the image<?=$Large_Image?> and description<?=$Description?> I got from the php code for the product detail page.  At the bottom of the detail page it will also post any discounts<?=$Discounts?> associated with the product.  When I transfer these variables for the thumbnail page it will show the large image and details about the product however it will not post the discounts. 

 

Does anyone know why <?=$Discounts?> will not work?

 

Is there a way calling it up from mysql?

 

This may be a dumb question but exactly where does the php code pick up the data when the php has <?=  in the front side of the variable?

 

 

 

 

 

The PHP interpreter <?=$Discounts?> is pasted right from the php in the details page.  The discounts show up in the details page but will not in the thumbnail page.  Since I pasted it the case should not be the problem.  Why can't it find the contents for the variable?

Sounds like you are dealing with two different pages, and the variable is set in one and not the other.

 

The PHP interpreter <?=$Discounts?> is pasted right from the php in the details page.  The discounts show up in the details page but will not in the thumbnail page.  Since I pasted it the case should not be the problem.  Why can't it find the contents for the variable?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.