Insert using +

QuestionsInsert using +
Tony Parkinson asked 10 years ago

Having just splashed out 50 bucks, the + insert SQL statement (MySQL, PDO) is not including the PK field (first column on the grid). Reinstalled the free version and it's fine, back to the paid-for version and it fails again.

A wasted couple of hours… Grrrr – Tony

2 Answers
Abu Ghufran answered 10 years ago

First field in column definition array is by-default skipped from INSERT query (assuming to be primary key and auto increment).
If you wish to include it in INSERT sql (non auto increment) you can set:

$col["autoid"] = false;

Tony Parkinson answered 10 years ago

Thanks Abu, that's fixed it 🙂

Your Answer

20 + 15 =

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?