내가 그렇지 않으면 내가mysqli bind_param의 NULL 유형은 무엇입니까? 그 변수가 존재하는 경우 MySQLi 문을 준비 INTO
type variable i corresponding variable has type integer d corresponding variable has type double s corresponding variable has type string b corresponding variable is a blob and will be sent in packets
을 알고 있지만 내가 변수 = NULL을 삽입 할 때 내가의 유형을 정의하는 방법 null.Then를 삽입하는 INSERT에 PARAMS을 결합하는 것을 시도하고있다 변하기 쉬운? 아니면 형식을 정의해야합니까? 그래서 그냥 사용 Mysqli가 허용 된 데이터 유형 중 하나에 전달 null 값을 처리합니다 -
null을 변수로 전달하고 string을 사용하면됩니다. – Ohgodwhy
변수를 null로 설정하십시오 (예 :'$ var = null;'). –
가능한 한 http://stackoverflow.com/questions/4920873/mysqli-prepared-statements-insert-null-using-bind-params –