Zend Framework

Zend and MySql- Inserts 0 instead of null.

Monday, April 7th, 2008

I’ve been working with the Zend Framework a bit and in working with MySQL through PDO_MYSQL. I’ve run into a few problems trying to use parameters of queries. I’ve narrowed the issue down to PDO itself and not the Zend Framework. $dbh = new PDO("mysql:host=localhost;dbname=db","user","pw"); $query = "insert into silo_test_data (record_id, fieldname, value) ...