PDA

View Full Version : Display Random Urls on Web page


macleodjb
07-28-2007, 02:48 PM
Here's a two part question.
I would like to either go in one direction or the other.

1. Is there a way using php to do a search on the internet using a keyword, collect the top five results, title and description, then display them on my webpage?

2. If i use sql and pre-define 100 urls which are relevant to my keyword, is there a way i can query my database and return 5 random records from the result.

I'm just looking for an easy way to keep good content on my pages. What do you guys think?

thesavior
07-28-2007, 04:40 PM
1) Yes, theoretically you could do that. However that would be stealing (both bandwith and users) from what ever search engine you decide to do it through.

2) Yes, that is one of the benefits of mysql tables.