I need to randomly generate web page content from synonyms pre-loaded into a database. In other words, everytime you refresh the page the content changes.
All of the Paragraphs would come from the database or SSI, whichever is best. Only the keywords that contain synonyms will be replaced. The remaining words will remain static.
I also need the number of paragraphs to be random, for example some pages may have 2,3,4,5 or 6 paragraphs.
I am open to suggestion for the best ways of doing this.
In the example below, I want to randomly spit out queryed data from the database to replace the words highlighted in blue. In other words, for the word "ran" I have in my database "jumped", "skipped", "hopped". I want the word "ran" replaced randomly with any of the items stored in the database.
I think what I need is a script that cross-checks for any instances of a variable against the database, then spits out the synonym at random.
I would also like it to have a way of making sure that it has used up all of the synonyms before using the same one again. That way If I refreshed the page, I wouldn't get the same synonym twice in a row.
The functionality has to work for the entire page, some pages will contain over a 1000 words.
I have a simple database that I have started. It includes a table for the Keyword, a table for the Synonyms and A Query to link the together. Feel free to change this to what works best.
The bottom line is that I am using 1 web page. When I refresh the page the content comes up completely different. Different words and number of paragraphs.
1. I ran to the store
[login to view URL] jumped to the mall
3. Everyone skipped to the fair
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
ASP/VB Script
MS Access