Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a CF named acts. Within Acts there are columns named, name, city, region, country. The row has a keyID which is a UUID. What I am trying to accompilish is to retrive the proper row based on the keyID and then display the value of the specified column. This is not working out for me and I would like some help. Thanks!
- <?php
- error_reporting(E_ALL);
- require_once(dirname(__FILE__).'/../config.php');
- if (!PandraCore::auto('localhost')) {
- die(PandraCore::$lastError);
- }
- $keyID = '635e06f0-3a84-012d-8d32-4040c61919ca';
- $keySpace = 'Keyspace1';
- $columnFamilyName = 'Acts';
- class Act extends PandraSuperColumn {
- public function init() {
- global $keySpace, $columnFamilyName;
- $this->addColumn('name', 'string');
- $this->addColumn('city', 'string');
- $this->addColumn('region', 'string');
- $this->addColumn('country', 'string');
- }
- }
- $a = new Act($keyID);
- $a->load();
- echo 'RETRIEVED'.$a->name.'<BR>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement