Lines Matching refs:row
121 while($row=$res->fetchArray(SQLITE3_ASSOC)){
122 $rows[]=$row;
149 $row=$db->querySingle("SELECT code,msg,lastcheck FROM linkcheck_cache WHERE url='$url_'", true);
151 if($o['requireexists']&&!$row) return [500,"url [ $url ] not in database"];
154 if(!$row || $row['lastcheck']<$o['cacheexpirytime']){
155 if(!$row) $row=['url'=>$url_];
157 $row['code']=(is_array($r)?$r[0]:$r)+0; #ensures integer
158 $row['codegroup']=linkcheck_code2group($row['code']);
160 if(is_array($r)){ $row['msg']=$r[1]; $msg_=$db->escapeString($row['msg']); }
161 else{ $msg_=$row['msg']=''; }
163 $row['lastcheck']=time();
164 $row['lastcheckdate']=date('Y-m-d H:i:s',$row['lastcheck']);
167 …inkcheck_cache SET codegroup='$row[codegroup]', code=$row[code],msg='$msg_',lastcheck=$row[lastche…
169 return $row['msg'] ? [$row['code'],$row['msg']] : $row['code'];