echo '<tr><td>get_one(2, "error")</td><td>' . $q->get_one(2, 'error') . '</td><td>Column <code>error</code> does not exist in row <code>2</code></td></tr>'; echo '<tr><td>get_assoc()</td><td>'; print_r($q->get_assoc()); echo '</td><td>Array ( [0] => Array ( [id] => 1 [firstname] => Lisa ) [1] => Array ( [id] => 2 [firstname] => Ben ) [2] => Array ( [id] => 3 [firstname] => Amanda ) )</td></tr>'; echo '<tr><td>get_result_as_table()</td><td>' . $q->get_result_as_table() . '</td><td> <table class="query"> <thead><tr> <th>id</th><th>firstname</th></tr></thead><tbody> <tr><td>1</td> <td>Lisa</td></tr> <tr><td>2</td><td>Ben</td></tr> <tr><td>3</td><td>Amanda</td></tr> </tbody></table></td></tr>'; echo '<tr><td>prepare()</td><td>'; $query = "SELECT id, email FROM user WHERE firstname!=? AND lastname!=?"; $params = array("ss", "Lisa", "DeBruine"); $return = array("id", "email"); $data = $q->prepare($query, $params, $return); echo "{$data['id']}: {$data['email']}"; echo '</td><td>1: lisa.debruine@glasgow.ac.uk</td></tr>'; echo '</tbody></table>'; //include_once DOC_ROOT . '/include/classes/psychomorph.class.php'; /* $img = new PsychoMorph_ImageTem('/monkey_female'); $img->getImg()->setDescription('My new image'); echo 'desc: ' . $img->getImg()->getDescription(); echo '<br />imgpath: ' . $img->getImg()->getUserPath(); echo '<br />tempath: ' . $img->getTem()->getUserPath(); echo '<br />n: ' . $img->getTem()->getPointNumber(); $img->alignEyes(); $img->setOverWrite(true); $img->save('/a_monkey.jpg'); echo '<br />imgpath: ' . $img->getImg()->getPath();