zero-perfoliate
zero-perfoliate

Author Topic: php+images  (Read 586 times)

Offline andyc

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
php+images
« on: October 21, 2008, 12:12:26 PM »
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 thanks.

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']; ?>">

 

zero-perfoliate