Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对此进行了搜索,但发现了很多不同的答案,但没有一个有效。
尝试通过检查我的 $result var 来获取 TRUE OR FALSE 是否已更新行。
$result = mysqli_query($con,"UPDATE iMember SET cellPhoneConfirmed='true' WHERE iMemberID = '$iMemberID'") or die("shoot");
我相信这一定很简单,但我找不到答案。
谢谢
mysqli_query() 通常返回 1 表示真,0 表示假。
如果您的变量 $iMemberID 是整数,则不需要 qoutes。
'$iMemberID' to $iMemberID
像这样..
$result = mysqli_query($con,"UPDATE iMember SET cellPhoneConfirmed='true' WHERE iMemberID = $iMemberID") or die("shoot");