Parse error: syntax error, unexpected T_VARIABLE, expecting ‘,’ or ‘;’ in C:\application\views\messages\view_jobNotify.php on line 51
[php] <?php
if(isset($notifyData))
{
$i=1; $k=0;
foreach($notifyData as $res)
{
//pr($res);
foreach($res as $rec)
{ $i=$i+1;
if($i%2 == 0)
{
$class ="dt1 dt0";
$class2 = "dt2";
}
else
{
$class ="dt2 dt0";
$class2 = "dt1";
}
$k=$k+1;
?>
<td class="<?php echo $class2; ?>"><?php echo $k; ?></td>
<td class="<?php echo $class2; ?>"><?php foreach($Users->result() as $user) { if($user->id == $rec->creator_id) { ?><a href="<?php echo site_url('owner/viewProfile/'.$user->id); ?>"> <?php echo $user->user_name; ?></a><?php } } ?></td>
<td class="<?php echo $class2; ?>"><a href="<?php echo site_url('job/view/'.$rec->id); ?>" onclick="check1('<?php echo $k; ?>')" id="show<?php echo $k; ?>"><?php echo $rec->job_name; ?></a></td>
<td class="<?php echo $class2; ?>"><?php echo $currency. $rec->budget_min.' - '$currency. $rec->budget_max;?></td>
<td class="<?php echo $class2; ?>"><?php echo get_datetime($rec->created); ?></td>
<td class="<?php echo $class2; ?>"><?php if($rec->job_status == '0') echo '<b style="color:green;">'.'Open'.'</b>'; if($rec->job_status == '2') echo '<b style="color:red;">'.'Closed'.'</b>' ?><?php
//Only for job Awards notification
if(!isset($invitation) and isset($awards) )
{ ?>
<a href="<?php echo site_url('job/acceptJob/'.$rec->id.'/'.$rec->checkstamp); ?>"> <?php echo $this->lang->line('Accept'); ?></a>
<a href="<?php echo site_url('job/denyJob/'.$rec->id.'/'.$rec->checkstamp); ?>"> <?php echo $this->lang->line('Denied'); ?></a> <?php
} ?>
</td></tr> <?php
}
}
}else{
echo 'No Records Found';
}
?> [/php]
can you see the missing … ’ or missing ; ? many thanks