Dreamweaver資料庫上傳更改事項

<?php

# FileName="Connection_php_mysql.htm"

# Type="MYSQL"

# HTTP="true"

$hostname_hotelorders = "localhost";  資料庫主機

$database_hotelorders = "twsadtco_osc"; 資料庫名稱 若只有osc肯定會錯誤,務加看清楚資料庫名稱

$username_hotelorders = "xxxxxx";    資料庫帳號

$password_hotelorders = "xxxxxxx";  資料庫密碼

$hotelorders = mysql_pconnect($hostname_hotelorders, $username_hotelorders, $password_hotelorders) or trigger_error(mysql_error(),E_USER_ERROR);

?>

Hotelorders為dreamweaver設定的連線名稱,上傳主機時不需更改

只要改上列項目,連主機的資料表也無需在此輸入

 

 

Unknown column 'mail' in 'field list'傳遞的錯誤訊息

資料庫無法找到mail的欄位,在資料庫新增一個mail欄位即可

或者,我們常常把mail打成email資料庫仍然會顯示此錯誤