Add Record – Couldn't execute query. Field "customer_id" doesn't have a default value

QuestionsAdd Record – Couldn't execute query. Field "customer_id" doesn't have a default value
AL KUO asked 5 months ago

Hi Sir,

i tested demo program at /demos/appearance/responsive-scroll.php. I experience a plink error message as the Title while i tried to add a record.  I also tried at Live Demo | PHP Datagrid Framework (gridphp.com) got the same result.

2 Answers
Abu Ghufran Staff answered 5 months ago

The demo is fixed now.

The tables which does not have autoincrement ids, we need to specify it manually which was missing in the demo. Following line fixed it.

$opt[“autoid”] = false;

https://www.gridphp.com/demo/demos/appearance/responsive-scroll.phps – line 29

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
AL KUO answered 5 months ago

it works now. Thanks !

Your Answer

4 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?