DT
This commit is contained in:
parent
4665e0b972
commit
486ffbd530
@ -17,7 +17,7 @@ function esp( $s )
|
|||||||
$db1 = new db ("nextcloud");
|
$db1 = new db ("nextcloud");
|
||||||
$db2 = new db ("nextcloud");
|
$db2 = new db ("nextcloud");
|
||||||
$db1->query("SHOW tables FROM $database;");
|
$db1->query("SHOW tables FROM $database;");
|
||||||
print_r($db1);
|
//print_r($db1);
|
||||||
while( $table = $db1->result->fetch_assoc())
|
while( $table = $db1->result->fetch_assoc())
|
||||||
{
|
{
|
||||||
echo "======================>" . $table['Tables_in_nextcloud'] ."\n";
|
echo "======================>" . $table['Tables_in_nextcloud'] ."\n";
|
||||||
@ -26,12 +26,13 @@ while( $table = $db1->result->fetch_assoc())
|
|||||||
foreach($columns AS $key=>$s)
|
foreach($columns AS $key=>$s)
|
||||||
{
|
{
|
||||||
print_r($s[0]) . "\n";
|
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 . "'");
|
$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);
|
print_r($tableau) . EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user