<?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 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在 ''leadentry'('CuLast', 'CuFirst', 'COBool', 'COFirst', 'COLast', 'CuAddrs1', 'CuA' at 1号线