[ MYSQL ]

Date: 2015-01-26 13:22:32 (CET)

FileName: /home/www/s/supersektor.cz/public_html/www/lib/rf.class/Tools/access.php

Messages: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'

139. 
140.             if (empty($idip)) {
141.                 $r = Db::dbQueryFirst("SELECT MAX(id) + 1 as VAL FROM a_ip");
142.                 $idip = $r[0];
143.                 $idip = Validations::_isInt($idip, 1);
144.                 Db::dbExecuteInsertStatement("a_ip", array("id" => $idip, "ip" => $ip, "hostname" => gethostbyaddr($ip)));
145.             }
146.             $row = null;
147.             return $idip;
148.         }
149. 
150.     }
151. }
	
Variables
#0 /home/www/s/supersektor.cz/public_html/www/lib/rf.class/Database/dbaccess.php(163): PDOStatement->execute() #1 /home/www/s/supersektor.cz/public_html/www/lib/rf.class/Database/db.php(68): Rf\Database\DbAccess->_dbExecuteInsertStatement('a_ip', Array, false) #2 /home/www/s/supersektor.cz/public_html/www/lib/rf.class/Tools/access.php(144): Rf\Database\DB::dbExecuteInsertStatement('a_ip', Array) #3 /home/www/s/supersektor.cz/public_html/www/lib/rf.class/Tools/access.php(56): Rf\Tools\Access::GetIDIP('54.167.132.102') #4 /home/www/s/supersektor.cz/public_html/www/lib/rf.class/framework.php(47): Rf\Tools\Access::init() #5 /home/www/s/supersektor.cz/public_html/www/index.php(21): Rf\Framework::start() #6 {main}