PHP 8.5.0 Alpha 4 available for testing

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

eisoft
15 years ago
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:

<?php
$ok
= $stmt->bind_param( 'ss', $id, $im ) ;
?>

<< Back to user notes page

To Top