|
# **********************************************************
# データベースへの更新
# **********************************************************
function InsertData( &$SQL ) {
global $ErrMessage;
$Query = "insert into 顧客マスタ";
$Query .= " (";
$Query .= "メールアドレス,氏名,郵便番号,住所,";
$Query .= "性別,TEL,携帯番号,パスワード";
$Query .= ") values(";
$Query .= Ss( $_POST['In1Email'] );
$Query .= "," . Ss( $_POST['In1Name'] );
$Query .= "," . Ss( $_POST['In1Zip'] );
$Query .= "," . Ss( $_POST['In1Address'] );
$Query .= "," . $_POST['In1Sex'];
$Query .= "," . Ss( $_POST['In1Tel'] );
$Query .= "," . Ss( $_POST['In1Mobile'] );
$Query .= "," . Ss( $_POST['In1Pass1'] );
$Query .= ")";
if ( !$SQL->Execute( $Query ) ) {
$ErrMessage = "登録に失敗しました";
}
}
| |