$wpdb->get_results($wpdb->prepare(… You have an error in your SQL syntax;

Question

I am making a database request in wordpress to make this question:
select * from tc_chat_clt;

How ever a error appears, what am I doing wrong?

$users = $wpdb->get_results($wpdb->prepare('SELECT * FROM %s',`tc_chat_clt`));
0
tiago calado 1 month 0 Answers 29 views 0

Leave an answer