SyntaxFix
Write A Post
Hire A Developer
Questions
before for loop :
$data = array();
then in your loop:
$data[] = array($catagory => $question);