Answer the question
In order to leave comments, you need to log in
Why doesn't the check for the existence of an N-string[PHP] work?
The class has a function
public function checkRow($query = null, $params = [])
{
$result = $this->link->prepare($query);
$result->execute($params);
return $result->fetchColumn();
}
print_r($db->checkRow('SELECT count(proxy) FROM ' . Config::TABLE_SITE . ' WHERE proxy=' . '1.1.1.1:8080'));
Answer the question
In order to leave comments, you need to log in
Check the data types you are using for the fields. For IPv4 use INT UNSIGNED and for INET_ATON and INET_NTOA conversion and keep the port separate.
And use appropriate quotes for tables/columns/values.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question