Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

import of category along with questions

0 votes
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);

 

also in

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..
asked Mar 8, 2011 in Q2A Core by anonymous

1 Answer

0 votes

I'm afraid you do need to pass the categoryid from the qa_categories table for that parameter, or null for no category.

answered Mar 9, 2011 by gidgreen