I am creating a simple search engine on my site, and I'd like to streamline the display, since it's kinda ugly now. I was working from a template given to me by my instructor, and currently it simply says "Your query is found in File #" with the words "File #" being the link. I'd rather have it say something like "Your query is found in the following files:" then list the files below it.
Here's the PHP code used right now:
Basically what I would need to do is use the value of $all_pages[$i] instead of simply using the number $i. How would I recall the value of that element in the array? I'm fairly new to PHP, and I can't find it in any of the searches I've used so far.
jW
Here's the PHP code used right now:
Code:
print("<p>Your query is found in <a href=".$all_pages[$i].">"."File ".$i."</a>");
Basically what I would need to do is use the value of $all_pages[$i] instead of simply using the number $i. How would I recall the value of that element in the array? I'm fairly new to PHP, and I can't find it in any of the searches I've used so far.
jW