• I have Query :
    $myset = $wpdb->get_results( “SELECT MAX(visits) FROM we_win_visits WHERE user_id=’$u_id’ AND les_id=’$postid'”);

    Which Output Like

    Array
    (
        [0] => stdClass Object
            (
                [MAX(visits)] => 6
            )
    
    )

    How to Catch “6” from this query as a String , so I can compare

    if ($string <= Catch Value)
    {
    //Do Code
    }
    Else
    {
    //Exit
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘How to Catch Value from Query?’ is closed to new replies.