Codeigniter validation

sameernyaupane

New Member
I have many goals to be printed on the screen.but it shows error when i use it like this\[code\]echo $this->validation->rshort_goal.$i;\[/code\]What is the right way to use this?\[code\]if($sgoal !=''){ $scount = count($sgoal); $i =1; foreach($sgoal as $row) { <textarea name="rshort_goal<?php print $i;?>" id="short_goal" class="short_go"> <?php if($this->validation->rshort_goal.$i) { echo $this->validation->rshort_goal.$i; } elseif($this->validation->rshort_goal.$i._error !='') { echo ''; } else {echo $$row->goal_description; } ?> </textarea> <?php $i++; }}\[/code\]
 
Top