mirror of
				https://github.com/optim-enterprises-bv/control-pane.git
				synced 2025-10-31 18:07:46 +00:00 
			
		
		
		
	Update db.php
This commit is contained in:
		| @@ -173,11 +173,12 @@ class Db { | |||||||
| 				$i++; | 				$i++; | ||||||
| 			} | 			} | ||||||
| 			$query->execute(); | 			$query->execute(); | ||||||
|  | 			$lastId = $this->_pdo->lastInsertId(); | ||||||
| 			$this->_pdo->commit(); | 			$this->_pdo->commit(); | ||||||
| 		} catch(PDOException $e) { | 		} catch(PDOException $e) { | ||||||
| 			return array('error'=>true,'info'=>$e->getMessage()); | 			return array('error'=>true,'info'=>$e->getMessage()); | ||||||
| 		} | 		} | ||||||
| 		return array('error'=>false,'lastID'=>$query->lastInsertId()); | 		return array('error'=>false,'lastID'=>$lastId); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	function update($sql, $values){ | 	function update($sql, $values){ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Momchil Bozhinov
					Momchil Bozhinov