Hello,
Thanks for your reply. My code is : ==== // collect fields $sql = "SHOW FULL COLUMNS FROM `{$tableName}`"; $res = mysql_query($sql, $this->_getConnection($type)); while($row = mysql_fetch_row($res)) { $tableProp['fields'][$row[0]] = array( 'type' => $row[1], 'is_null' => strtoupper($row[3]) == 'YES' ? true : false, 'default' => $row[5], 'extra' => $row[6], 'collation' => $row[2], ); } // create sql $sql = "SHOW CREATE TABLE `{$tableName}`"; $res = mysql_query($sql, $this->_getConnection($type)); $row = mysql_fetch_row($res); $tableProp['create_sql'] = $row[1]; ==== Can you tell me where exactly modification is needed? Replace $res = mysql_query($sql, $this->_getConnection($type)); with $res = mysql_query($query) or die('Error:' . mysql_error()) ?