John Davidson

php - Right syntax to use near '%d AND IDX = %d'

0 comments
Message:


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

3 of 5 based on 8335 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us