note 96850 added to mysqli-stmt.bind-param

From: Date: Thu, 18 Mar 2010 23:42:16 +0000
Subject: note 96850 added to mysqli-stmt.bind-param
Groups: php.notes 
Request: Send a blank email to php-notes+get-167188@lists.php.net to get a copy of this message
I did a prepared statement for inserting in a simple table - images ( blob ) and their unique identifiers ( string ). All my blobs have smaller sizes than the MAX-ALLOWED-PACKET value. I've found that when binding my BLOB parameter, I need to pass it as a STRING, otherwise it's truncated to zero length in my table. So I have to do this: $ok = $stmt->bind_param( 'ss', $id, $im ) ; ---- Server IP: 69.147.83.197 Probable Submitter: 79.113.63.223 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php Edit -- https://master.php.net/note/edit/96850 Del: integrated -- https://master.php.net/note/delete/96850/integrated Del: useless -- https://master.php.net/note/delete/96850/useless Del: bad code -- https://master.php.net/note/delete/96850/bad+code Del: spam -- https://master.php.net/note/delete/96850/spam Del: non-english -- https://master.php.net/note/delete/96850/non-english Del: in docs -- https://master.php.net/note/delete/96850/in+docs Del: other reasons-- https://master.php.net/note/delete/96850 Reject -- https://master.php.net/note/reject/96850 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167188) next »