07.06.2012, 18:31
(
Последний раз редактировалось CoaPsyFactor; 07.06.2012 в 23:52.
Причина: Solved
)
Hello there,
So I have this little problem, when I insert something with mysql_query, function mysql_insert_id should return number of Auto Increment column, for some reason, it doesn't, it always return 0. And also, I set default value (start value) of auto increment to be 34, but when the first item is inserted id is 1, I also tested it from php to insert, and it works fine, start value is 34. There is no need to show you query, because I'm very good with SQL, and this is some strange s*it. So if anyone could give me some helping intel, just post here.
Thanks in advance.
So I have this little problem, when I insert something with mysql_query, function mysql_insert_id should return number of Auto Increment column, for some reason, it doesn't, it always return 0. And also, I set default value (start value) of auto increment to be 34, but when the first item is inserted id is 1, I also tested it from php to insert, and it works fine, start value is 34. There is no need to show you query, because I'm very good with SQL, and this is some strange s*it. So if anyone could give me some helping intel, just post here.
Thanks in advance.