我得到这个错误无效的参数数:绑定变量的数量不匹配令牌的数量在/home/200228935/public_html/PHPWebServer/savevideo .php第51行
$sql = 'INSERT INTO videogame(developer, name, cost, genre)
VALUES(:developer,:name,;cost,:genre)';
//Allows special characters and slims the chance SQL injection
$cmd=$conn->prepare($sql);
$cmd->bindParam(':developer',$developer,PDO::PARAM_STR,50);
$cmd->bindParam(':name',$name,PDO::PARAM_STR,50);
$cmd->bindParam(':cost',$cost,PDO::PARAM_INT);
$cmd->bindParam(':genre',$genre,PDO::PARAM_STR,50);
$cmd->execute();
第51行$cmd->execute();
将;cost
改为:cost
$sql
字符串