comparison usrajax.php @ 775:62a98cb255f7

Oops, 100L .. a remnant of SQL code change experiment. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 15:41:53 +0200
parents 539bfbdd43ec
children 8f570449f9e7
comparison
equal deleted inserted replaced
774:d6668b73bb01 775:62a98cb255f7
26 $key_id, $entry_id, $vote, time()); 26 $key_id, $entry_id, $vote, time());
27 } 27 }
28 else 28 else
29 { 29 {
30 // Existed, thusly update 30 // Existed, thusly update
31 $sql = stPrepareSQLUpdate( 31 $sql = stPrepareSQL(
32 "UPDATE votes SET value=%d,utime=%d WHERE key_id=%d AND entry_id=%d", 32 "UPDATE votes SET value=%d,utime=%d WHERE key_id=%d AND entry_id=%d",
33 $vote, time(), $key_id, $entry_id); 33 $vote, time(), $key_id, $entry_id);
34 } 34 }
35 35
36 return stExecSQL($sql); 36 return stExecSQL($sql);