Jump to content
Sigmahokies

Create new table will have relationship to prime table automatically

Recommended Posts

Hi everyone,

I know how to create new table by PHP, but I don't know how to have relationship to prime table such as account or register table once a new table is insert. Can you please show me how to do that? I know how to create new table, but my point is once table is insert in phpmyadmin, then have relationship connect to prime table. If you are not sure, I will explain more about this. 

Thanks,

Gary

Share this post


Link to post
Share on other sites

I'm talking about the storage engine used for the tables.  InnoDB supports foreign keys, MyISAM does not.  Your MySQL tables are probably using one of them, only InnoDB will enforce those constraints.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...