From 9e6a4f8131f4eb3d030a3fd6108a871400ce7e7f Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 2 Sep 2019 21:02:55 +0200 Subject: [PATCH] DT --- findindb.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/findindb.php b/findindb.php index 461cd38..efc69d1 100755 --- a/findindb.php +++ b/findindb.php @@ -26,19 +26,21 @@ while( $table = $db1->result->fetch_assoc()) foreach($columns AS $key=>$s) { print_r($s); - echo EOL; - if ( $s[0] == 'email') echo "################################################"; - $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string . "'"; - echo $query . "\n"; - $db2->query($query); - if ( $db2->result->num_rows != 0 ) + if ($s[0] != 'index' ) { - $tableau = $db2->result->fetch_all(); - echo "column " . $s[0] . "\n"; - print_r($tableau); echo EOL; + if ( $s[0] == 'email') echo "################################################"; + $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string . "'"; + echo $query . "\n"; + $db2->query($query); + if ( $db2->result->num_rows != 0 ) + { + $tableau = $db2->result->fetch_all(); + echo "column " . $s[0] . "\n"; + print_r($tableau); + echo EOL; + } } - } }