Hi , I am tried modifying the php as suggested above
I am using latest version of Q2A
$postid =qa_question_create(null, $questionuserid, null, null, $questiontext, $questioncontent, '', null,$questiontags, false, null,$questioncats);
function qa_question_create($followanswer, $userid, $handle, $cookieid, $title, $content, $format, $text, $tagstring, $notify, $email, $categoryid)
earlier $categoryid=null was there...
but still it is not working. I don;t want to get category id from any table. I am sure whatever data i am putting is correct..