fix variable name

This commit is contained in:
wlx 2015-01-16 13:52:09 +00:00
parent 7d5b37236c
commit 12e043c06c
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class DataTableControl extends Database{
return $row; return $row;
} }
public function readFields($tableName) public function readFields($tablename)
{ {
$st=explode('.',$tablename); $st=explode('.',$tablename);
$sql = "select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS where table_schema='".$st[0]."' and TABLE_NAME='".$st[1]."'"; $sql = "select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS where table_schema='".$st[0]."' and TABLE_NAME='".$st[1]."'";