result == 'success') { $stmt = $dbh->prepare('INSERT INTO tbl_ticker_data VALUES(null, NOW(), :last_price, :last_vol)'); $stmt->bindParam(':last_price', $json->return->last->value, PDO::PARAM_STR); $stmt->bindParam(':last_vol', $json->return->vol->value); $stmt->execute(); } ?>