Hi...I have two database files, a product date base and a comment database....they run seperately....when you call up a product it includes a link to make a comment as well as a link to read comments...as many as 30 products can be called up at a time....at the moment I have the product page query the comment database to see if there are any comments....could be thirty times....this is too slow....
What I need: comments added to the comment database are validated before they are shown....I have that installed and running.....I need the comment database cgi to open the product database and write to a specific field when a comment is validated...if there are no comments the field in the product data base would be blank....so, if there are comments a link will appear in the product listing, if there are no comments then no link would show up.....
Once a comment is validated it will stay there....there need not be any coding to reverse the entry into the product database.
I'm pretty sure I simply want to tack this onto the bottom of the comment validate sub....but I'm unsure how to define the product datafile and such.
Any help.
regards Steven
What I need: comments added to the comment database are validated before they are shown....I have that installed and running.....I need the comment database cgi to open the product database and write to a specific field when a comment is validated...if there are no comments the field in the product data base would be blank....so, if there are comments a link will appear in the product listing, if there are no comments then no link would show up.....
Once a comment is validated it will stay there....there need not be any coding to reverse the entry into the product database.
I'm pretty sure I simply want to tack this onto the bottom of the comment validate sub....but I'm unsure how to define the product datafile and such.
Any help.
regards Steven