user3184290 user3184290 - 1 month ago 6
PHP Question

Confused with comma's in PHP

I know is a stupid question but well i am trying so hard but i can't figure out on where i am missing the comma i am totally confused ,The below code is giving me an error.

it would be great if someone can help me out with a referencing on comma and tips / Tricks on them :)

i tried replacing the commas in different places but still it didn't worked out.

<td><?php echo <a href="test1.php?id=<?php echo $row['ID'];?>"/>Download! ?></a></td>

Thanks :)


It has to be:

        echo '<a href="test1.php?id=' . $row['ID'] . '">Download!</a>';


    <a href="test1.php?id=<?=$row['ID']?>">Download!</a>