php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30909 How to use NULLS in mysqli prepared statements
Submitted: 2004-11-26 14:42 UTC Modified: 2004-11-26 14:44 UTC
From: phoeniks2k at mail dot ru Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.0.2 OS: All
Private report: No CVE-ID: None
 [2004-11-26 14:42 UTC] phoeniks2k at mail dot ru
Description:
------------
I can't find how to bind NULL with mysqli_stmt_bind_param()
Even when i use string and pass NULL it's converted to '' (empty string), int is converted to 0.

But i need to insert NULLs.

If it's a doc miss, please describe how to use NULLs, othewise fix mysqli extension


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-26 14:44 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See #30908
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 18:01:23 2021 UTC