<?php
// Select which parameters you want, this example: fetch player name and vocation from players table (based on player id).
$data = user_character_data($charid, 'name', 'vocation');
echo $data['name']; // Result: playername
echo $data['vocation'] // Result: 1 (if its a sorcerer, etc...).
?>