I have next php code
Code: Select all
foreach($datas as $row) {
$html ='';
if($row['complementar'] =='wait') $html .='<span class="label label-warning">wait</span>';
else if($row['status'] =='activ') $html .='<span class="label label-success">Approved</span>';
echo ' <tr>
<td>'.$row['ID'].'</td>
<td>'.$row['servicii2'].'</td>
<td>'.echo $html;.'</td>
<td>'.$row['buget'].'</td>
</tr>
';
Code: Select all
Parse error: syntax error, unexpected 'echo' (T_ECHO)