auto_increment setting??

I deleted my "quotationID" input box in the _form cause it is auto_increment.

now the problem is I CAN create new record, but I CAN NOT watch it in the show veiw(can display on the list view),It says page not found, but I know the link id is right…look below.


please help dear brother!what should I do?

delete this comment





		$a=$conn->createCommand('select max(quotationID) from quotations')->queryColumn(); 





I solve it by take out a max id from database and plus 1 for a new primary key, it works, FYI。。。