diff --git a/findindb.php b/findindb.php index 61215a7..d732a1b 100755 --- a/findindb.php +++ b/findindb.php @@ -27,7 +27,7 @@ while( $table = $db1->result->fetch_assoc()) { print_r($s[0]) . "\n"; $db2->query("SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'"); - if ( $db2->result->count ) + if ( $db2->result->num_rows != 0 ) { $tableau = $db2->result->fetch_all(); echo "column " . $s[0] . "\n";