Comment on Tutorial - Handling BLOB in PHP and MySQL By Andi, Stig and Derick



Comment Added by : Lasse Christiansen

Comment Added at : 2010-05-01 01:58:14

Comment on Tutorial : Handling BLOB in PHP and MySQL By Andi, Stig and Derick
Hi Andi, Stig and Derick!

Nice turorial! However, I think you are using a wrong argument in "$stmt->bind_param("s", $data);"

Using s (string), I cannot get this command working, however, by using "b" for blob (see PHP manual: http://php.net/manual/en/mysqli-stmt.bind-param.php ) the script is perfectly working.

My MySQL and PHP versions:

PHP 5.3.2
MySQL 5.1.45


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. The example is wrong, because there are two sepera
View Tutorial          By: billGates at 2010-07-06 16:56:13

2. Thank you.. Its working..
View Tutorial          By: koti at 2012-06-11 19:53:21

3. i tried with d above code but am getting an error
View Tutorial          By: Aishwarya at 2009-04-05 04:41:17

4. Apache was failing to deliver php pages that were
View Tutorial          By: Ted at 2010-11-13 08:13:29

5. pls help how to fetch vowels as a first letter of
View Tutorial          By: anjali at 2014-09-18 20:45:49

6. site is really good.explaining the concept with ni
View Tutorial          By: reddy chakri india at 2009-03-10 00:20:00

7. please send me the code of this movable clock and
View Tutorial          By: dafi at 2008-05-14 05:06:08

8. Thanks. Helped me save few hours
View Tutorial          By: Balan at 2008-04-07 18:25:08

9. This program is mush faster and finer than given p
View Tutorial          By: Anonymous at 2013-02-27 05:38:27

10. oh u solved my one of the hardest problem through
View Tutorial          By: zehra at 2012-01-28 19:44:14