View Single Post
Old 01-25-2013, 01:58 AM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,168
Thanks: 59
Thanked 3,993 Times in 3,962 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
You know, you really answered your own question. (The one you send me privately.)
Quote:
-- The reviews are published by filling out a form which on submit pre-formats the results with HTML,CSS and Microdata format as needed and outputs the results to a file which is then brought into a HTML page using a PHP include statement when the relevant HTML page is served to the browser.
And therein lies your mistake.

Instead of outputting the reviews to a text file, they should be stored in a database.

And part of what would be stored, besides the preformatted HTML of the review, would be any fields needed to easily calculate the needed totals/values via a SQL query.

Then your PHP page executes the appropriate SQL query (or possibly queries, though I wouldn't expect you need more than one), gets all the data, plunks it into the HTML page, along with the now-calculated-without-JavaScript values that you want Google to see.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote