//extract product details foreach($product as $row){ $product_id=$row->product_id; $title=$row->title; $cat_id=$row->cat_id; $temp=get_cat_name_from_cat_id($cat_id); $cat_name=$temp['name'];//not sure why this is comes as an array. $description=$row->description; $price=$row->price; $attribute1=$row->attribute1; $attribute1_value=$row->attribute1_value; } //extract photos $file_names=array(); //echo count($photos); //print_r($photos); $tot_photos=count($photos); $a=0; foreach($photos as $row){ $file_names[$a]=$row->file_name; $a++; } //print_r($file_names); ?>
Severity: Warning
Message: Undefined variable $title
Filename: views/product_detail.php
Line Number: 35
Backtrace:
File: /home/sslcnjmn/tinytoes.lk/application/views/product_detail.php
Line: 35
Function: _error_handler
File: /home/sslcnjmn/tinytoes.lk/application/controllers/Page.php
Line: 44
Function: view
File: /home/sslcnjmn/tinytoes.lk/index.php
Line: 315
Function: require_once