1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-01-11 18:21:52 +00:00
S2OJ/web/app/libs/uoj-query-lib.php

10 lines
229 B
PHP

<?php
function queryProblemBrief($id) {
return DB::selectFirst("select * from problems where id = $id", MYSQLI_ASSOC);
}
function queryBlog($id) {
return DB::selectFirst("select * from blogs where id='$id'", MYSQLI_ASSOC);
}