Skip to content
Snippets Groups Projects
Commit eb232e73 authored by Tran Le's avatar Tran Le
Browse files

Lab17: Step5 - added comments and changed makeStatement function to private

parent 7388e206
Branches
No related merge requests found
......@@ -42,7 +42,8 @@ class Blog_Entry_Table {
return $model;
}
public function makeStatement($sql, $data=NULL) {
private function makeStatement($sql, $data=NULL) {
//the default $sql will be used if nothing else is passed to $data
$statement = $this->db->prepare( $entrySQL );
try{
$statement->execute($data);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment