Help get this topic noticed by sharing it on Twitter, Facebook, or email.

phpmysqlmm2e - ch10 - mysql_query($insert_image_sql) fails

Book: PHP & MySQL Second Edition the missing manual

Chapter 10: Connecting Users and Images

Problem: I've been following the book's finished example code for this section and can't get it to work. I get these two errors:

Warning: mysql_query(): MySQL server has gone away in C:\wamp\www\PHPMySQL2e_MissingCD\PHPmm2e_ch10_examples\04-Connecting Users and Images\create_user.php on line 96

Warning: mysql_query(): Error reading result set's header in C:\wamp\www\PHPMySQL2e_MissingCD\PHPmm2e_ch10_examples\04-Connecting Users and Images\create_user.php on line 96

I read on Stack Overflow that it might be a connection timeout with the database. As you can probably tell, I'm running the server locally. I am hoping for a customized solution to this problem from the book's contributors—otherwise I will read more on Stack Overflow.

My specs:
Apache Version: 2.4.4
PHP Version: 5.4.12
MySQL Version: 5.6.12
1 person has
this problem
+1
Reply