I want to be able to make a duplicate MySQL table (one with identical field types). The only way I know of how to do this is to determine the field types of the original table, then use that to create a new table. The problem is that I can't figure out how to get enough detail about the fields. mysql_field_type() and mysql_field_flags() does not give me enough information. It needs to be more specific (such as distingushing btw "int" and "bool").
On the other hand, if there is a simpler way of creating an identical table, that would be even better.