Reccuring Event writes new events with the same event_id

Hello all,

I am using the sample html/javascript, but I change the php to connect to my local mysql.
but when I create new events or edit one instance of an existing event, a new event is created (which what is expected) but it always uses 0 as an event_id.
I don’t seem to be able to find the place where I can modify/fix that.

Anyone else facing the same problem?

Thanks in Advance.

[Solved]:
Nevermind, I realized that I have to put auto-increment on.