From 4227227415f195581d18db1925ef87acdcb25838 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 2 Sep 2019 18:56:33 +0200 Subject: [PATCH] DT --- findindb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/findindb.php b/findindb.php index 2456a6e..15922f6 100755 --- a/findindb.php +++ b/findindb.php @@ -27,8 +27,8 @@ while( $table = $db1->result->fetch_assoc()) { print_r($s[0]); echo EOL; - echo "SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'\n"; - $db2->query("SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string . "'"); + $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string . "'\n"; + $db2->query($query); if ( $db2->result->num_rows != 0 ) { $tableau = $db2->result->fetch_all();