in reply to Help debuging a script that uses commands I am just learning
Also, can you place holders for the parameters? Try something like:... \@AvatarName = '$FileName, \@Game = '$Game', ... ^ single quote missing here
Note that using place holders allows you to simplify the syntax of your SQL. You can use single quotes for the statement and there's no need to escape the at-signs.$STH = $DBH -> prepare ('exec AddAvatars ?, @Creator = ?, @ContactMeth +od = ?, @ContactAddress = ?, @AvatarName = ?, @Game = ?, @Section = ? +, @Width = ?, @Height = ?') or die "$DBI::errstr;"; $STH -> bind_param_inout(1, \$Error, 1); $STH -> bind_param(2, $Creator); $STH -> bind_param(3, $ContactMethod); ...etc... $STH -> execute or die "$DBI::errstr;";
|
|---|