Selecting between two peice of code...
Posted: Mon Nov 14, 2005 7:57 pm
Let's say this is my code:
I need my PHP script to look through each on of those paragraphs and count how many paragraphs down the test6.php result is. So in this example, it would return the value 6.
Any ideas how I would go about doing this? I have no idea what to do and where to start...
Code: Select all
<div>
<p><a href="test1.php">Test 1</a></p>
<p><a href="test2.php">Test 2</a></p>
<p><a href="test3.php">Test 3</a></p>
<p><a href="test4.php">Test 4</a></p>
<p><a href="test5.php">Test 5</a></p>
<p><a href="test6.php">Test 6</a></p>
<p><a href="test7.php">Test 7</a></p>
</div>Any ideas how I would go about doing this? I have no idea what to do and where to start...