javascript - Generate same line changing integer PHP -
i want make sitemap of website , has thousands of static pages id?=1 decided make php script automatically generate these links
or have idea how can this
my website pages like
http://example.com/index.php?pn=4 http://example.com/index.php?pn=5 . . now want paste same lines again , again changing numbers after =
try this:
<?php for($i=0;$i<=6;$i++) { // changes value of 6 according needs echo '<p><a href="http://example.com/index.php?pn='.$i.'">http://example.com/index.php?pn='.$i.'</a></p>'; } ?>
Comments
Post a Comment