- should be "AND"
Signed-off-by: Roland Häder <roland@mxchange.org>
// Updates a given entry by just counting it up
function updateCrackerTrackerEntry (array $rowData, $countColumn = 'count') {
// Construct the SELECT query
- $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" OR `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1';
+ $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" AND `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1';
// Run the SQL and check if we have one line
runCrackerTrackerSql($sqlString, __FUNCTION__, __LINE__);