array core dbs- query SELECT FROM work WHERE cid id ORDER BY time DESC

1
2
3
4
5
6
$array = core:: $dbs-> query("SELECT * FROM work WHERE cid = '$id' ORDER BY time DESC LIMIT $n->start,$end",array($id));
while($arr = $array -> fetch()){
echo '<div class="main"><a href="/work_'.$arr['id'].'.html">
<img style="padding-right:0px; border-radius: 20px; border: 2px solid #B89E44;" src="'.$arr['screen'].'" alt="Скриншот" width="80" height="80"> '.$arr['name'].'</a></div>';
}