と言うエラーが出ました
C:\xampp\htdocs\initializr\search.php の 189 行目で、オブジェクト以外のメンバー関数 mysql_affected_rows() を呼び出します。
送信ボタンをクリックしたとき。
if(isset($_POST['select'])) {
$studId = $_REQUEST['studid'];
foreach ($studId as $ch) {
$result = $mysqli->query("INSERT INTO tbl_tempCand (datetime, names) VALUES (CURRENT_TIMESTAMP(), '".$ch."')");
//this is my line 189 error
if($row->mysql_affected_rows($result)==0) {
header("Location: registercand.php");
} else {
echo "nothing happen";
}
}
}
何故ですか?