podaj FILTER_SANITIZE_STRING
Mam to zapytanie:
$query="select * from news where news_id = (select max(news_id) from news where news_id< $id)";
do wykonania używam klasy. w tej klasie
public function query($query)
{
$this->_query = filter_var($query, FILTER_SANITIZE_STRING);
$stmt = $this->_prepareQuery();
$stmt->execute();
$results = $this->_dynamicBindResults($stmt);
return $results;
}
Czy jest jakiś sposób<
sygnał nie jest filtrowany?