Commit b84d475d authored by pedro_morgan's avatar pedro_morgan
Browse files

Removed depreciated mysq_sql_tables function

parent d5cf65e7
...@@ -349,18 +349,20 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -349,18 +349,20 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
return $this->query($sql); return $this->query($sql);
} }
// gibt Array mit Tabellennamen zurück // gibt Array mit Tabellennamen zurck
function getTables($database_name = '') { function getTables($database_name = '') {
if($database_name == '') $database_name = $this->dbName; if($database_name == ''){
$result = mysql_list_tables($database_name); $database_name = $this->dbName;
}
$result = mysql_query("SHOW TABLES FROM `$database_name`");
for ($i = 0; $i < mysql_num_rows($result); $i++) { for ($i = 0; $i < mysql_num_rows($result); $i++) {
$tb_names[$i] = mysql_tablename($result, $i); $tb_names[$i] = mysql_tablename($result, $i);
} }
return $tb_names; return $tb_names;
} }
// gibt Feldinformationen zur Tabelle zurück // gibt Feldinformationen zur Tabelle zurck
/* /*
$columns = array(action => add | alter | drop $columns = array(action => add | alter | drop
name => Spaltenname name => Spaltenname
...@@ -482,7 +484,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -482,7 +484,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
return 'char'; return 'char';
break; break;
case 'varchar': case 'varchar':
if($typeValue < 1) die("Datenbank Fehler: Für diesen Datentyp ist eine Längenangabe notwendig."); if($typeValue < 1) die("Datenbank Fehler: Fr diesen Datentyp ist eine Lngenangabe notwendig.");
return 'varchar('.$typeValue.')'; return 'varchar('.$typeValue.')';
break; break;
case 'text': case 'text':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment