myq() did not return results, now it does
This commit is contained in:
parent
f6752a34bc
commit
6f9260e08e
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue