Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
724 views
in Q2A Core by
Hello, i just started a php project which is insert questions directly qa_posts. Unfortunetly when i run my project it creates two same questions. Any idea?
by
Impossible to know without seeing what code you are running.
by
$ekle = "INSERT INTO `qa_posts` (`type`,`categoryid`,`catidpath1`,`acount`,`amaxvote`,`createip`,`format`,`created`,`title`,`content`) VALUES ('Q','7','7','0','0','1320620350','html','$date','$title','$bilgi')";
by
If you are adding the question twice that means you're likely executing the INSERT INTO twice. Most likely your issue is not related to Q2A but rather is just a bug in your code.

1 Answer

0 votes
by
Its only insert one time and after insert there is a die();
...