I have a table called wp_points created in Wordpress with these fields:
point_ID (INT)
example: 1point_user_ID (INT)
example: 1point_accumulated (INT)
And I need to show the amount of points have any ID. I have this code but does not show me anything:
<?php
global $wpdb;
$milink = $wpdb->get_row("SELECT * FROM $wpdb->points WHERE point_user_ID = 1");
echo $milink->point_accumulated;
?>
What am I doing wrong?
Thanks for your help!