MySQL Dual Entry???
Hello,
I have been doing INSERT function for mysql for a while and I have never come across this problem. The following code:
if (isset($_GET['vote']) && $voteOK && $totalRows_CheckVote == 0 && $totalRows_Active > 0) {
$insertSQL = sprintf("INSERT INTO Rankings (AnimeID, UserID, Vote) VALUES (%s, %s, %s)",
GetSQLValueString($_GET['animeid'], "text"),
GetSQLValueString($row_Active['MEMBERID'], "text"),
GetSQLValueString($_GET['vote'], "int"));
mysql_select_db($database_Anime, $Anime);
$Result1 = mysql_query($insertSQL, $Anime) or die(mysql_error());
}
inserts the data twice. So I get duplicates of everything!
Any and all help would be appreciated ![]()
Message was edited by: cwhazzoo