Reasons I hate people who use php.

Sep 08, 2009 13:36

I like some people. I kinda like php at this point. I don't like the person that used this as an example in one of my php books.

$sql = 'INSERT INTO people VALUES (?, ?, ?, ?)';
$statement = $mdb2->prepare($sql);
$data = array(
array($mdb2->nextId('people'), 'James', 'Hetfield', '1969-06-06'),
array($mdb2->nextId('people'), 'Lars', 'Ulrich', '1968-02-02')
);

$mdb2->loadModule('Extended');
$mdb2->executeMultiple($statement, $data);
$statement->free();
Previous post Next post
Up