sp; $sp->setString($sqlstring); $vals=$sp->parseSqlQuery(); $table = $vals->table; $columns = $vals->colNames; $columntypes = $vals->colTypes; $columndefault = $vals->fieldValues; if (is_dir ($thiz->db_name.$table) || !@mkdir ($thiz->db_name.$table,0777) ) { $thiz->ErrorMsg[0] = DB_ERRORMSG_107; } else { $nncols=""; $typecols=""; $body = ""; if ($fp = @fopen($thiz->db_name.$table.'/schema.php', "w+")) { fputs($fp, $body); fclose ($fp); $rs = true; } else { $thiz->ErrorMsg[] = DB_ERRORMSG_105; $rs = false; } } if ($rs) { $thiz->nid = $table.' (table) created'; return true; } else { return false; } } ?>