Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Add form problem

Post Reply
fuzzyq
Posts: 6
Joined: Thu Feb 14, 2013 1:14 pm

Add form problem

Unread post by fuzzyq »

Hi,
I'm new here.

I create browse form and i inner join two tables on this form.
When i create object text and add this object to my form and try add some record program give me error:

Code: Select all

An error has occurred while running this query.

SQL

SELECT * FROM `model` WHERE `model.id` = '-1'
and this is my browse html:

Code: Select all

select * from model
inner join marka on marka.id = model.marka_id
plz help me.

Regards!

ps. sorry for my bad english.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Add form problem

Unread post by admin »

fuzzq,

Make the primary key of the Form id not model.id.

Steven
painatal
Posts: 12
Joined: Fri Mar 01, 2013 2:57 am

Re: Add form problem

Unread post by painatal »

i've had the same problem. did you solve it?
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Add form problem

Unread post by admin »

painatal,

This is the answer
Make the primary key of the Form id not model.id.
Because nuBuilder puts 2 ` around the primary key.

Steven
Post Reply