Can any1 tell me whats wrong here:
Basically when i press the thumbsu button i want to increment the field +1 for tht ddl.
PHP:
$thumbsUp = $_POST['good'];
$thumbsDown = $_POST['bad'];
$id = isset($_GET['id']) ? mysql_real_escape_string(trim($_GET['id'])): '';
if ($thumbsUp) {
mysql_query("UPDATE wcddl_downloads SET thumbsup=thumbsup+1 WHERE id='$id'");
}
Basically when i press the thumbsu button i want to increment the field +1 for tht ddl.