I think I just figured out my foreign key creation problem. I have to dump all the data in the related tables, delete the contents of those tables, create the foreign key and then import the data back.<div><br> </div><div>
In other words you cannot create a foreign key between two tables that are already filled with data even though the key field and ptr fields are correct?</div>