Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress query get results

<?php
global $wpdb;
$user_id = get_current_user_id();
$user = $wpdb->get_row( "SELECT * FROM score WHERE user_id = ".$user_id."");
if(!empty($user)){
$score = $user->score;
}
?>
 
PREVIOUS NEXT
Tagged: #wordpress #query #results
ADD COMMENT
Topic
Name
1+8 =