Atualização Companies.class.php

This commit is contained in:
Kenio 2025-07-29 14:52:08 -03:00
parent 8534de3f88
commit 540c44453b

View file

@ -186,7 +186,7 @@ class Companies
/** Consulta SQL */
$this->sql = 'select count(c.company_id) as qtde
from companies c';
from companies c ';
/** Verifica se há pesquisa */
if($this->typeSearch && $this->search){
@ -213,8 +213,6 @@ class Companies
$this->sql .= 'where (select count(s.state_id) from states s where uf = :search and s.state_id = c.state_id) > 0';
}
}
echo $this->sql;
/** Preparo o SQL para execução */
$this->stmt = $this->connection->connect()->prepare($this->sql);