Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Passing Rating to $Rating variable.

Quote Reply
Passing Rating to $Rating variable.
Hello,
How can I pass the value of <%Rating%> in a static page that uses .PHP extention into a php variable $Rating which I am going to use it inside that page to reduce the rating number by 3 everytime the page gets viewed (Detailed/1.php) using PHP/mySql. Or is there any other way that I can use to use to reduce the rating number of a record by certain amount every time its detailed page got viewed. I have my rating base 100.

As I want to use (I am using static build but with extension .php instead of .html from the BUILD OPTIONS in the setup).

Thank you
Mark

Last edited by:

Mark2: Jul 1, 2002, 9:43 AM
Quote Reply
Re: [Mark2] Passing Rating to $Rating variable. In reply to
<?$Rating = <%Rating%>?>

Adrian
Quote Reply
Re: [brewt] Passing Rating to $Rating variable. In reply to
Hummm!! I guess my question was really stupid!! Crazy. Thank you anyway.
My question now, can the new rating that is going to be displayed on 1.php (the detailed page) can be stored back into the database, so next time someone comesback to the 1.php, he/she would see the Rating value is reduced 3 points from the previouse time? what would be the code... or maybe that is too much...

Thank you for your help and regards..
Mark