getting error while passing values to the datatable
getting error while passing values to the datatable
Hi...
I am using Datatable for retrieving values frm db in symfony 1.4. there am passing only six values and am getting 7 values and it is showing in an alert box.
[code]
Form Name
Status
<?php foreach($formlist as $list):?>
<?php
$found =0;
foreach($stagemappedlist as $stage):
if($stage->getFormId()==$list->getId()):
$found=1;?>
<?php endif; ?>
<?php endforeach;
if($found==0): ?>
<?php endif; ?>
<?php echo $list->getFormName(); ?>
<?php if($found==0): ?>
Not Assigned
<?php endif; ?>
<?php if($found==1): ?>
Assigned
<?php endif; ?>
<?php endforeach; ?>
[/code]
I am using Datatable for retrieving values frm db in symfony 1.4. there am passing only six values and am getting 7 values and it is showing in an alert box.
[code]
Form Name
Status
<?php foreach($formlist as $list):?>
<?php
$found =0;
foreach($stagemappedlist as $stage):
if($stage->getFormId()==$list->getId()):
$found=1;?>
<?php endif; ?>
<?php endforeach;
if($found==0): ?>
<?php endif; ?>
<?php echo $list->getFormName(); ?>
<?php if($found==0): ?>
Not Assigned
<?php endif; ?>
<?php if($found==1): ?>
Assigned
<?php endif; ?>
<?php endforeach; ?>
[/code]
This discussion has been closed.