我正在上線49的誤差的代碼缺少一行代碼「;」下面誤差
確切錯誤
解析錯誤行:語法錯誤,意想不到T_NEW,期望「」或‘;’在上線/home/banking/onlinebanking/processdeposit.php 49
enter code here
<?php
require_once('../header.inc.php');
require_once('../class/database.class.php');
require_once('../class/person.class.php');
require_once('../websiteconfig.inc.php');
require_once('../class/bankaccount.class.php');
/*Start Session*/
session_start();
$currentMember = unserialzed($_SESSION['currentMember']);
/*Initialize variables*/
$depositamount = $_POST['depositamount_dollars'] . '.' . $_POST['depositamount_cent'];
$account = $_POST['account'];
$errors[]=array();
/*Error Handling*/
if($depositamount_dollars==''){
$errors[] = 'Please enter a valid dollars amount for your deposit.';
}
/*Error Handling*/
if($depositamount_cents==''){
$errors[] = 'Please enter a valid cents amount for your deposit.';
}
if($account==0){
$errors[] = 'Please select an account.';
}
/*Check if errors exist*/
$db = new Database;
$bankaccount = new Bankaccount;
$bankaccount->connection =$db->connection;
/*Process Deposit*/
$newbalance = $bankaccount->deposit($currentMember->memberid, $account, $depositamount);
echo '<h3>Deposit Completed</h3>' . "\n";
下面是一行49
這些行沒有錯。一起顯示你的代碼和確切的錯誤信息。 – 2011-05-03 02:06:45
是否可以在服務器上安裝php4,並正在編寫php5的代碼? – 2011-05-03 02:44:30