Jump to content

Why will some variables work but not others?


hiveman

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?

Archived

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

×
×
  • 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.