I'm getting the following query error.
$total = $wpdb->get_var("SELECT COUNT(*) FROM tsk_users_ticket_infor WHERE ID = %d AND IDX = %d", $user_ID , $id);
How would I go about replacing this system, without putting the variables directly in the query?
My Answer:
It seems like your question is incomplete. Can you please provide more context or details so I can assist you with the correct syntax in PHP?
Rate this post
4 of 5 based on 6776 votesComments