From ca8bdcb4b15e80ff2a2ef6e0a69cae4bcab37ba6 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 1 Sep 2019 22:54:10 +0200 Subject: [PATCH] dT# Veuillez saisir le message de validation pour vos modifications. Les lignes --- findindb.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/findindb.php b/findindb.php index bd65e40..2718aa7 100755 --- a/findindb.php +++ b/findindb.php @@ -16,8 +16,10 @@ while( $table = $db1->result->fetch_assoc()) $columns = $db2->result->fetch_all(); foreach($columns AS $key=>$s) { + $db2->query("SELECT * FROM " . $s[0]); + $tableau = $db2->result->fetch_all(); echo "column " . $s[0] . "\n"; - if (array_search($string, $columns) !== false) + if (array_search($string, $tableau) !== false) { echo "column " . $s . " => " . "$key\n"; }