I want to define prefix in variable
global $wpdb;
$prefix = 'qa_';
$titles = $wpdb->get_results("
SELECT title
FROM "$prefixpages"
}
");
Can anyone guide why its not working and hot to make it works.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you need to query from table qa_tages:
OR same line:
if you need contents of $qa_pages variable: