更新查询不起作用php-mysql

时间:2017-12-18 15:40:05

标签: php mysql

我在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");

Image of the database

我没有看到表中的问题。问题是菜单的名称是a,我想将其更改为b

如何解决此问题?

0 个答案:

没有答案