<?php function createLead($CuFirst, $CuLast, $COBool, $COFirst, $COLast, $CuAddrs1,
$CuAddrs2, $CuCity, $CuZip, $CuEmail, $CuDphone, $CuHphone, $CuCphone, $BuildYr, $HoAge, $NoWindows,
$NoWindowQuote, $WindowType1, $WindowType2, $WindowType3, $WindowType4, $GlassType1, $GlassType2,
$Doors1, $Doors2, $Doors3, $Doors4, $Issue1, $Issue2, $Issue3, $Issue4, $Issue5, $Issue6, $Issue6,
$Issue7, $Event, $Staff, $DigiSign, $Comments) {
$CreateLead = "INSERT INTO 'rbaevent'.'leadentry' ('CuLast','CuFirst','COBool','COFirst','COLast','CuAddrs1','CuAddrs2','City','Zip','Email',
'DPhone','HPhone','CPhone','Built','AgeWindows','NoWindows','NoWinQuote','Aluminium','Vinyl',
'Wood','Clad','Single','Double','Entry','Patio','French','None','Cost','Cold','Clean',
'Fogging','Hard','Rotting','Peeling','Secure','Event','selectname','DigiSign','Comments')
VALUES ('$CuFirst', '$CuLast','$COBool', '$COFirst', '$COLast', '$CuAddrs1', '$CuAddrs2',
'$CuCity', '$CuZip', '$CuEmail','$CuDphone', '$CuHphone', '$CuCphone', '$BuildYr', '$HoAge',
'$NoWindows', '$NoWindowQuote','$WindowType1', '$WindowType2', '$WindowType3', '$WindowType4',
'$GlassType1', '$GlassType2','$Doors1', '$Doors2', '$Doors3', '$Doors4', '$Issue1', '$Issue2',
'$Issue3', '$Issue4', '$Issue5','$Issue6', '$Issue6', '$Issue7', '$Event', '$Staff',
'$DigiSign' ,'$Comments')";
return $CreateLead; }
エラーメッセージは次のとおりです。
SQL構文にエラーがあります。'' Leadentry'(' CuLast'、' CuFirst'、' COBool'、' COFirst'、' COLast'、' CuAddrs1'、' CuA'の近くで使用する正しい構文については、MySQLサーバーのバージョンに対応するマニュアルを確認してください。ライン1