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.

http://localhost:90/uwsys/index.php?r=quotations/show&id=2147483678

please help dear brother!what should I do?

delete this comment

if(isset($_POST[‘quotations’]))

	{


		$model->attributes=$_POST['quotations'];


		$conn=Yii::app()->db;


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


		$model->setAttribute('quotationID',$a[0]+1);


		if($model->save())


			if(isset($_POST['orders']))


			{....}}}

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