Hi,
DW complains of a syntax error that I cannot understand. I use the code as a standalone and it is not a problem, but when used as a table element as written below, it complains of a syntax error. The red highlight is where it complains, the green seems to work just fine. Any help is appreciated. Thanks
stony
------------------------------ code follows
while ($row = $result->fetch()) {
$output[] = '<tr>';
$output[] = '<td>'.$row['manufacturer'].'</td>';
$output[] = '<td>'.$row['model'].'</td>';
$output[] = '<td>'.$row['description'].'</td>';
$output[] = '<td>'.'$.'.$row['price'].'</td>';
$output[] = '<td>' echo "<input type='text' name='Value[{$row['id']}]' value='{$row['value']}'>" '</td>';
$output[] = '<td>' echo "<input type='checkbox' name='Update[{$row['id']}]' value='Box #{$row['id']}'>" '</td>';
// echo "<input type='text' name='Value[{$row['id']}]' value='{$row['value']}'>"
$output[] = '<td>'.'<a href="cart.php?action=add&id='.$row['id'].'&product='.$product.'">Add to list</a>'.'<td>';
$output[] = '</tr>';
}
$output[] = '</table>';
echo join('',$output);