Guest User

Untitled

a guest
Jun 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $q= Doctrine_Query::create()
  2. ->from('Quiz q')
  3. ->where('q.id = ?' , $id);
  4.  
  5. $quiz=$q->fetchOne();
  6. echo $quiz['id'], $values['title'], $values['CategoryID'],$description;
  7. //die();
  8. if($quiz)
  9. {
  10. $quiz->title=$values['title'];
  11. $quiz->description=$description;
  12. $quiz->CategoryID =$values['CategoryID'] ;
  13. $quiz->save();
  14. }
Add Comment
Please, Sign In to add comment