myq() did not return results, now it does

This commit is contained in:
pezcurrel 2022-12-12 08:17:01 +01:00
parent f6752a34bc
commit 6f9260e08e

View file

@ -189,11 +189,12 @@ use function mysqli_real_escape_string as myesc;
function myq(&$link,$query,$line) {
try {
mysqli_query($link,$query);
$res=mysqli_query($link,$query);
}
catch (Exception $error) {
mexit('query «'.$query.'» (line '.$line.') failed: '.$error->getMessage().N,3);
}
return($res);
}
$lockfp=__DIR__.'/crawler.lock';
@ -630,7 +631,7 @@ if ($opts['jsonwrite']) {
fwrite($jsonf,'{'.N);
}
//$insts='damze.umbrella.cafe';
//$insts=['damze.umbrella.cafe'];
$tini=time();
$cinsts=count($insts);
$i=0;