Syntax error, unexpected ... litle help

i just want to ask where can be problem i put this code i put button that will add to cart my item but its give me error
[php]echo “

”;
echo “”. $row[‘Art’]. “”;
echo “”. $row[‘d’]. “”;
echo “”. $row[‘De’]. “”;
echo “”. $row[‘Lo’]. “”;
echo “”. $row[‘R’]. “”;
echo “”. $row[‘nt’]. “”;
echo “”. $row[‘Ln’]. “”;
echo “”. $row[‘sn’]. “”;
echo “”. $row[‘Fn’]. “”;
echo “”. $row[‘rdj’]. “”;
echo “”. $row[‘stanje’]. “”;
echo “”. $row[‘cena’]. “”;
echo “”. $row[‘artnr’]. “”;
echo ’
';
echo “”;[/php]

giving me error

Parse error: syntax error, unexpected ‘artnr’ (T_STRING), expecting ‘,’ or ‘;’ in C:\wamp\www\shop\filterpretraga.php on line 716

that artnr its a row from sql table

thx

Here’s an error
[php]<php echo $row[‘artnr’]>[/php]

You should consider cleaning up this code, look how much better it is as a seperate view.

[php]?>

<?= $row['Art'] ?> <?= $row['d'] ?> <?= $row['De'] ?> <?= $row['Lo'] ?> <?= $row['R'] ?> <?= $row['nt'] ?> <?= $row['Ln'] ?> <?= $row['sn'] ?> <?= $row['Fn'] ?> <?= $row['rdj'] ?> <?= $row['stanje'] ?> <?= $row['cena'] ?> <?= $row['artnr'] ?> [/php]

Or even better, using a foreach

[php]?>

<?php foreach ($row as $fieldName => $fieldValue) { ?> ><?= $fieldValue ?> <?php } ?> [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service