我在php中为mysql写了一个更新查询,但查询不起作用。
$baglanti11 = new PDO("mysql:host=localhost;dbname=xxx","php","");
$okulmdmay = filter_input(INPUT_POST, "okulmdma"); // when i print $okulmdmay i give b
$menuno = 14;
$veridegis13 = $baglanti11 -> prepare("update menu set menuadi = ? where no = ?") or die("0");
$veridegis13 -> bindParam(1, $okulmdmay) or die("1");
$veridegis13 -> bindParam(2, $menuno) or die("2");
$veridegis13 -> execute() or die("3");
我没有看到表中的问题。问题是菜单的名称是a
,我想将其更改为b
。
如何解决此问题?