Посетитель
Покинул форум
Сообщений всего: 483
Дата рег-ции: Янв. 2011
Помог: 6 раз(а)
|
есть метод
PHP:
скопировать код в буфер обмена
public function saveOrder($startDate, $startTime, $initialHotel, $clientName, $room, $finishDate, $finishTime, $finishHotel, $finishAdmin, $dayCount, $retCountry, $car, $carPricePerDay, $insurance, $addDriver, $childSeat, $autoTrans, $gps, $skiBox, $another, $outOfWork, $another2, $outBorder, $orderSumm, $cashType) { $this->startDate = $startDate; $this->startTime = $startTime; $this->initialHotel = $initialHotel; $this->clientName = $clientName; $this->room = $room; $this->finishDate = $finishDate; $this->finishTime = $finishTime; $this->finishHotel = $finishHotel; $this->finishAdmin = $finishAdmin; $this->dayCount = $dayCount; $this->retCountry = $retCountry; $this->car = $car; $this->carPricePerDay = $carPricePerDay; $this->insurance = $insurance; $this->addDriver = $addDriver; $this->childSeat = $childSeat; $this->autoTrans = $autoTrans; $this->gps = $gps; $this->skiBox = $skiBox; $this->another = $another; $this->outOfWork = $outOfWork; $this->another2 = $another2; $this->outBorder = $outBorder; $this->orderSumm = $orderSumm; $this->cashType = $cashType; $query = "INSERT INTO order (startdate, startTime, initialHotel, clientName, room, finishDate, finishTime, finishHotel, finishAdmin, dayCount, retCountry, car, carPricePerDay, insurance, addDriver, childSeat, autoTrans, gps, skiBox, another, outOfWorkTIme, anothertwo, outBorderPermission, paytype, orderSumm) VALUES ('$this->startDate', '$this->startTime', '$this->initialHotel', '$this->clientName', '$this->room', '$this->finishDate', '$this->finishTime', '$this->finishHotel', '$this->finishAdmin', '$this->dayCount', '$this->retCountry', '$this->car', '$this->carPricePerDay', '$this->insurance', '$this->addDriver', '$this->childSeat', '$this->autoTrans','$this->gps', '$this->skiBox', '$this->another', '$this->outOfWork', '$this->another2', '$this->outBorder', '$this->orderSumm', '$this->cashType)"; }
после того как я его вызываю, PHP:
скопировать код в буфер обмена
$order->saveOrder($startDate, $startTime, $initialHotel, $clientName, $room, $finishDate, $finishTime, $finishHotel, $finishAdmin, $dayCount, $retCountry, $car, $carPricePerDay, $insurance, $addDriver, $childSeat, $autoTrans, $gps, $skiBox, $another, $outOfWork, $another2, $outBorder, $orderSumm, $cashType);
выдает ошибку You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (startdate, startTime, initialHotel, clientName, room, finishDate, finishT' at line 1
в чем может быть проблема?
|