De momento tengo esto, pero no hace bien la suma ni inserta hasta llegar a las 520 lineas, solo inserta una vez y queda de esta forma:
511 	links 	2013-06-25 10:29:19 	0 	0 	10 	1046677488 
y deberia de quedar: 
511 	links 	2013-06-25 10:29:19 	349 	0 	10 	1046677488  
y un bucle hasta llegar a  
520 	links 	2013-06-25 10:29:19 	358 	0 	10 	1046677488  
Código:
 <?php
$link = mysql_connect("localhost","xxxx","xxxx");
		mysql_select_db("meneahiphop",$link);
		
	$query=mysql_query("SELECT * FROM `meneahiphop`.`votes`",$link);
	
		$num_rows = mysql_num_rows($query);
	
	if ($num_rows < 520) {
$sql = mysql_query("INSERT INTO `meneahiphop`.`votes` (`vote_id`, `vote_type`, `vote_date`, `vote_link_id`, `vote_user_id`, `vote_value`, `vote_ip_int`) VALUES (NULL, 'links', '2013-06-25 10:29:19', '$suma', '0', '10', '1046677488')",$link);
		
		$indice = '348';
		
		$suma = $indice + 1;
		
		echo 'realizado';
			}
		
		else {
  echo 'Hay una repetida no se inserta';
}
?>