Jump to content

php+images


andy68

Recommended Posts

Hi,i am quite new to php and i am trying to get an image to display at the side of some text,the products have a price id;1,2,3,4 and i would like to display image1,image2,image3,image4 to the right off them respectively,many thx.

 

i have this on my page.php;

 

if($product_groups = $PMDR->get('Products')->getProductsArray()) {

    foreach($product_groups as $group) {

        foreach($group['products'] as $product) {

            foreach($product['pricing'] as $key=>$price) {

                $form_pricing[$price['id']] = 'Pricing Level '.$price['id'];

                $form->addField('pricing_id','radio',array('label'=>'Pricing Level '.$price['id'],'fieldset'=>'products'));

            }

        } 

    } 

    $form->addField('submit','submit',array('label'=>$PMDR->getLanguage('user_submit'),'fieldset'=>'submit'));   

}

 

 

And this on my page.tpl,

<input style="width: auto;" type="radio" name="pricing_id" value="<?php echo $price['id']; ?>">

Link to comment
https://forums.phpfreaks.com/topic/129404-phpimages/
Share on other sites

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.