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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -