for my issue i'll try to be as brief as possible
what am trying to do is reference a page with a specific id in the HTML anchor link with PHP as the below
<body>
<?php  $linkName = "Second Page"; ?>
<?php $id = 5; ?>
<a href="secondPage.php?id=<?php echo $id;?>"><?php echo $linkName?></a><br>
and it works fine
now what am trying to do is to make the $id part more dynamic by making looping the number from 1 to 10 and also providing 10 links
the code is
</head>
<body>
    <?php  $linkName = "Second Page"; ?>
    <?php $id = 5; ?>
    <?php  
        for ($i=0; $i < 10 ; $i++) { 
            echo "<a href='secondPage.php?id=<?php echo $i;?'>Link1</a>";
        };
    ?>
</body>
however what i did notice as the below images indicates when i hover on the links i noticed that i refer to a strange link
and when i cliched on it it takes me to the following link with an id that i did not want as below
http://localhost/PHP_Course/secondPage.php?id=%3C?php%20echo%201;?
i tried researching the subject and i tried escaping the quotation but it does not seem to resolve the problem
Any help please ??

 
     
     
     
     
    