<?php
$rank = pg_query("SELECT * FROM suporte");$total = pg_num_rows($rank);
$rank1 = pg_query("SELECT * FROM suporte WHERE status='0'");$news = pg_num_rows($rank1);
$rank2 = pg_query("SELECT * FROM suporte WHERE status='1'");$resps = pg_num_rows($rank2);
$rank = new Ranking();
$pagina=$_GET['pagina'];
if ($pagina == null) {
$pc = "1";
}else{
$pc = $pagina;
}
$inicio = $pc - 1;
$inicio = $inicio * 12;
$anterior = $pc - 1;
$proximo = $pc + 1;
$pags = $rank->Totaltickets();
?>
Where are you connecting to a database? The syntax is incorrect and incomplete.
https://www.php.net/manual/en/function.pg-query.php
i have done it but now there is another error
Fatal error: Uncaught Error: Class 'Ranking' not found in C:\xampp\htdocs\painel\pages\alltickets.php:14 Stack trace: #0 {main} thrown in C:\xampp\htdocs\painel\pages\alltickets.php on line 14
So you need to include the file or specify an autoloader.