From 486ffbd530937653880e4c985e42c35f2a59c129 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 1 Sep 2019 23:36:01 +0200 Subject: [PATCH] DT --- findindb.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/findindb.php b/findindb.php index d732a1b..e50fb06 100755 --- a/findindb.php +++ b/findindb.php @@ -17,7 +17,7 @@ function esp( $s ) $db1 = new db ("nextcloud"); $db2 = new db ("nextcloud"); $db1->query("SHOW tables FROM $database;"); -print_r($db1); +//print_r($db1); while( $table = $db1->result->fetch_assoc()) { echo "======================>" . $table['Tables_in_nextcloud'] ."\n"; @@ -26,12 +26,13 @@ while( $table = $db1->result->fetch_assoc()) foreach($columns AS $key=>$s) { print_r($s[0]) . "\n"; + echo "SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'\n"; $db2->query("SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'"); if ( $db2->result->num_rows != 0 ) { $tableau = $db2->result->fetch_all(); echo "column " . $s[0] . "\n"; - print_r($tableau); + print_r($tableau) . EOL; } }