我使用的是来自的评分脚本
但我希望它能将评分上传到数据库中,并阻止一个人一直投票给同一张图片。
这是我上传和设置cookie的脚本:
<?php
// Get id and voted value
$id = $_POST['widget_id'];
preg_match('/star_([1-5]{1})/', $_POST['clicked_on'], $match);
$vote = $match[1];
// Connect to database and find the row which have the id
$get