|
|||
|
Hi,
im trying to add a row to a table which has no primary keys. could anyone tell me why i get the following exception: Uncaught exception 'Zend_Db_Table_Exception' with message 'A table must have a primary key, but none was found thanks for helping pete PHP Code:
no primary keys 2 columns "id_subscriber_list", "id_subscriber" |
|
|||
|
Did you read the message of the exception? You need a primary key!
Quote:
__________________
www.roetgers.org | Weblog, Screencasts and Tutorials |
|
|||
|
Your primary key will probably be a complex key using both of the fields, assuming they are jointly unique (a subscriber can only subscribe to a list once?). If they are not, you should add an artificial key.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|