<?php
$id = $_POST['$id'];
//echo "$id" or die("donno number");
$connection = mysql_connect("localhost", "root") or die ("Unable to Connect to database");
mysql_select_db("netRadio") or die ("Unable ro select database");
$add = ("SELECT max(votes) FROM netRadio");
$sqladd = ("INSERT INTO list (votes) WHERE id LIKE '%".$id."%' VALUES('$add')");
mysql_query($sqladd) or die (mysql_error());
mysql_close($connection)
?>
in the file where it's submitted I have a line in the form like this:
<input type='hidden' name='$id'>
where $id is the unique id of the item.