PHP: How can I get this value? -


$result2 = $db->prepare('select `lkey_member` mxscript_slayer_licensekeys `lkey_key` = ?'); $result2->bindparam(1, $auth); $result2->execute(); 

how can print value of lkey_member result2?

first fetch it, echo it. in case can use fetchcolumn function pdo has specifying index of column want fetch (in case 1 retrieving):

$lkeymember = $result2->fetchcolumn(0);   echo $lkeymember; 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -