About Import large sets of data into an SQL table; ToSQL will create a suitable table structure, guessing data types, keys and more, and then proceed to inserting the data. This can be useful for those with large amounts of data stored in XML or JSON files, who want to make the transition to SQL .
Usage
$query = ToSQL::Import($table_name, $data, ToSQL::<type>); // mysql_query($query); </type>