Jump to content

Number array to number links


StefanRSA

Recommended Posts

I want to number my links:

If

<? $number = 5; ?>

How can I create number of links and as follow?

echo "<a href='../member/myad.php?ad=1'>Create Ad 1</a><br>
<a href='../member/myad.php?ad=2'>Create Ad 2</a><br>
<a href='../member/myad.php?ad=3'>Create Ad 3</a><br>
<a href='../member/myad.php?ad=4'>Create Ad 4</a><br>
<a href='../member/myad.php?ad=5'>Create Ad 5</a><br>"
;

and also make sure that not more than 5 links appear?

Link to comment
https://forums.phpfreaks.com/topic/163401-number-array-to-number-links/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.