query DB dbs query SELECT FROM down_pods WHERE id array int _GET pr if

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?
$query = DB :: $dbs -> query("SELECT * FROM `down_pods` WHERE(`id`=?)", array((int) $_GET['pr']));
if($query -> rowCount() == 0)
{
header('location: /');
exit;
}
$pods = $query -> fetch();
ИЛИ
$pods = DB :: $dbs -> queryFetch("SELECT * FROM `down_pods` WHERE(`id`=?)", array((int) $_GET['pr']));
if(!$pods)
{
header('location: /');
exit;
}