Location: PHPKode > projects > BuzzyWall > buzzywallSETUP/update.php
<?php

  if($_GET['rating'] && $_GET['imgId']){
    include('db_connect.php');
	$db = opendatabase();
	$imgId = $_GET['imgId'];
    
   
	//ads the rating to imgID in the database
    $update = "UPDATE bw_main SET wp_no_ratings = wp_no_ratings + 1, wp_ratings = wp_ratings + ".$_GET['rating']." WHERE wp_id = '".$imgId."'";
    $result = mysql_query($update);
	 echo "Thank You for Voting!";
   }
?>
Return current item: BuzzyWall