Skip to content

Instantly share code, notes, and snippets.

@oswaldoacauan
Created August 8, 2013 18:05
Show Gist options
  • Save oswaldoacauan/6187053 to your computer and use it in GitHub Desktop.
Save oswaldoacauan/6187053 to your computer and use it in GitHub Desktop.
Zend - Execute a string query
<?php
$stmt = $model->getAdapter()->query(
'SELECT * FROM bugs WHERE reported_by = ? AND bug_status = ?',
array('goofy', 'FIXED')
);
$rows = $stmt->fetchAll();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment