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

How to retrieve a single question from the database.

+2 votes
Hi There

I'm not very good with databse queries :(< sad face.

What would be the fastest way to pull information for a single question from the database, the same information you would find in the list of questions on Q2A front page that links the questions ?

Would really preciate it if someone could show me the code for that :).
asked Aug 29, 2011 in Q2A Core by Eschelon

1 Answer

0 votes
 
Best answer
require_once QA_INCLUDE_DIR.'qa-db-selects.php';
$post=qa_db_single_select(qa_db_full_post_selectspec(null,$postid));
answered Aug 30, 2011 by NoahY
:O Thankyou so much Noah,
I haven't tested it yet, I managed to load the content on to a flash movie for each slug.
I'm certain this is a very usefull bit of sql for many users thou.
sorry about before!, Peace bortha XD.
no problem, we are all in it together :)