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

About PHP Insert/Creates two exactly same questions

+2 votes
69 views
asked Dec 7 in Q2A Core by Kıvanç
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?
commented Dec 7 by Scott
Impossible to know without seeing what code you are running.
commented 5 days ago by bluntk
$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')";
commented 4 days ago by pupi1985
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
answered 4 days ago by bluntk
Its only insert one time and after insert there is a die();
...