Wednesday, 25 September 2013

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
expecting ',' or ';'

After adding this code:
<?php
foreach($emp as $empdata){
echo "<tr><td>".$empdata[emp_id]."</td><td>"."<a
href="?>edit.php?emp_id=<?php echo $empdata[emp_id]
">".$empdata[emp_name]."</a></td></tr>";
} ?>
I get this:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
expecting ',' or ';' in
/home/kumar/public_html/amsConcrete/single_pages/employee/show_employee.php
on line 23
Any suggestions? Please

No comments:

Post a Comment