1
0
This commit is contained in:
Daniel Tartavel 2019-09-01 23:38:12 +02:00
parent 486ffbd530
commit bb822e2834

View File

@ -25,14 +25,16 @@ while( $table = $db1->result->fetch_assoc())
$columns = $db2->result->fetch_all(); $columns = $db2->result->fetch_all();
foreach($columns AS $key=>$s) foreach($columns AS $key=>$s)
{ {
print_r($s[0]) . "\n"; print_r($s[0]);
echo EOL;
echo "SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'\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 . "'"); $db2->query("SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . "='" . $string . "'");
if ( $db2->result->num_rows != 0 ) if ( $db2->result->num_rows != 0 )
{ {
$tableau = $db2->result->fetch_all(); $tableau = $db2->result->fetch_all();
echo "column " . $s[0] . "\n"; echo "column " . $s[0] . "\n";
print_r($tableau) . EOL; print_r($tableau);
echo EOL;
} }
} }