<?phpinclude('houtaipost.php');include('hosst.php');$xxboo = $_POST['xbook'];$tpos = new poi();if( $tpos -> post($xxboo) ){die('書名不能為空');}$xsel = "SELECT * FROM txt201807 WHERE txtname=$xxboo";$qwe = $sql -> query( $xsel );$sx = $qwe->fetch_array();if ( $sx == NULL ) {die("沒有此書或書名錯誤");};$del = "DELETE FROM txt201807 WHERE txtname=$xxboo";$sql -> query( $del );header("location: houtai.html");?>前文件已加入utf8的相關代碼如果中文前面有數字,只需輸入數字也能刪除,例如“12書啊啊”,只需輸入“12”也能刪除“12書啊啊”,很奇怪
添加回答
舉報
0/150
提交
取消