954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

InnoDB and joining tables - problem getting join to happen

I have two databases, tvguide and episodes1.

Both are InnoDB, and I use Phpmyadmin to edit them.

I tried creating a foreign key between the "episode" field of episodes1 and tvguide, and this error message came up:

Error creating foreign key (check data types) : episode

How can I fix this and ensure both tables join? I have InnoDB set for both databases, so this shouldn't happen, but why?

Here are the table definitions:
episodes1 table: www.pastebin.com/54Cc5TNg
episodedata1 table: www.pastebin.com/AxWeHnkn

Otherwise, I have few issues with my PHP script, the pagination works fine, although some issues with that one [but not for this thread] and it's working well for now, so where have I gone wrong with the InnoDB for this?

whitestream6
Junior Poster
174 posts since Nov 2008
Reputation Points: 15
Solved Threads: 0
 

What would I do to fix this?

whitestream6
Junior Poster
174 posts since Nov 2008
Reputation Points: 15
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: