Primary key?

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
hjortsberg
Joomla! Explorer
Joomla! Explorer
Posts: 359
Joined: Sun Jun 22, 2008 4:25 pm

Primary key?

Post by hjortsberg » Mon Aug 06, 2012 10:55 pm

If I have a table in db that has a primary key that is named reg_nr, a new row is not inserted.

If I have an id column that is a primary key, a new row is inserted.

Any idea why?

grayz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 128
Joined: Tue Dec 12, 2006 8:37 pm

Re: Primary key?

Post by grayz » Sun Sep 23, 2012 9:39 pm

You can name primary key as you want.
Try adding a row in 1st table in phpMyAdmin, if it works the issue is not in the database.
Maybe your table controller is sill using 'id' to construct table class.
www.justPHP.net - HACKS for Hot Property, Custom 404 Error Pages, Templates for Joomla etc.
Developing: www.zerno.org.ua


Locked

Return to “Joomla! 1.5 Coding”