DT
This commit is contained in:
parent
c84f0de827
commit
aa6487fb0d
13
findindb.php
13
findindb.php
@ -3,8 +3,7 @@
|
||||
<?php
|
||||
require("db.class.php");
|
||||
$database = $argv[1];
|
||||
$password = (isset($argv[2]))?$argv[2]:"";
|
||||
$string = (isset($argv[3]))?$argv[3]:"";
|
||||
$string = (isset($argv[2]))?$argv[2]:"";
|
||||
|
||||
$db1 = new db ("nextcloud");
|
||||
$db2 = new db ("nextcloud");
|
||||
@ -15,6 +14,14 @@ while( $table = $db1->result->fetch_assoc())
|
||||
echo "======================>" . $table['Tables_in_nextcloud'];
|
||||
$db2->query("SHOW columns FROM " . $table['Tables_in_nextcloud']);
|
||||
$columns = $db2->result->fetch_all();
|
||||
print_r($columns);
|
||||
foreach($s in $column AS $key)
|
||||
{
|
||||
if (array_search($string, $columns) !== false)
|
||||
{
|
||||
echo "column " . $s . " => " . "$key";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user