error because hoster uses new version of MySql

The guestbook in sannesfotos.net uses the Viper guestbook (V1.1.):
http://sannesfotos.net/S_gastboek/index.php
It did run fine during the last 5 years.
But recently my hoster upgraded MySQL to a new version and I get next error message:

[tt]The following MySQLi query produced an error : select ID, NAME, FRCE, MAXVALUE from VGB_RATINGBOX

1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘MAXVALUE from VGB_RATINGBOX’ at line 1[/tt]

Checking the index.php file of the guestbook for that query, I find the query in next code block:

// get the list of the defined rating-boxes $boxes = array(); $query = vgb_query("select ID, NAME, FRCE, MAXVALUE from VGB_RATINGBOX"); while ($row = vgb_result($query)) { $boxes[] = $row; }

So my question is: What is wrong???

Sponsor our Newsletter | Privacy Policy | Terms of Service