$link = mysqli_connect('127.0.0.1','root','','base');
$sql = "SELECT * FROM tablepart WHERE user= $user AND reg = $reg";
$obj = mysqli_query($link, $sql);
$res = mysqli_fetch_all($obj);
var_dump($res);
error_reporting(E_ALL);
ini_set('display_errors', 0);
ini_set('log_errors','on');
ini_set('error_log', __DIR__ . '/logs/main_error.log');
php_value error_log logs/parse_error.log
try(){
}
catch(){
error_log($e->getMessage() . PHP_EOL, 3, __DIR__. '/logs/db_error.log');
}