我的服务器给了我错误的回复:
Fatal error: Uncaught exception 'Exception' with message 'MySQL server has gone away query: INSERT INTO vans (`name`, `make`, `model`, `age`, `body_style`, `cond`, `milage`, `booth_space`, `seat`, `doors`, `eng_size`, `pow_kw`, `pow_hp`, `fuel_type`, `transsmission`, `vrt`, `price`, `description`, `seller`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'
Soo,我该如何解决这个问题?我试着把manualy放到sql上,没有任何错误。
php代码:
$table=$this->vehicletype.'s';
$data=array(
'name'=>$this->vehicle['name'],
'make'=>$this->vehicle['make'],
'model'=>$this->vehicle['model'],
'age'=>$this->vehicle['age'],
'body_style'=>$this->vehicle['body_type'],
'cond'=>$this->vehicle['condition'],
'milage'=>$this->vehicle['milage'],
'booth_space'=>$this->vehicle['booth_space'],
'seat'=>$this->vehicle['seat'],
'doors'=>$this->vehicle['doors'],
'eng_size'=>$this->vehicle['engine_pow'],
'pow_kw'=>$this->vehicle['kw_pow'],
'pow_hp'=>$this->vehicle['hp_pow'],
'fuel_type'=>$this->vehicle['fuel_type'],
'transsmission'=>$this->vehicle['transsmission'],
'vrt'=>$this->vehicle['licence_date'],
'price'=>$this->vehicle['price'],
'description'=>$this->vehicle['desc'],
'seller'=>$this->user['main']['user_type']
);
$id=$db->insert($table,$data);
mysql数据库: mysql 我使用自己的代码。我花了8个小时在谷歌找到问题,但没有,每个问题都连接到一些图书馆,但它是我的。