How do I use the DB functionality?
posted by Stephan Borg on 01 Jul 2005 (13:23 UTC)
Ok,

<?php
$query 
"select * from `".BIT_DB_PREFIX."tiki_history` where `page_id`=? order by ".$this->convert_sortmode("last_modified_desc");
$result $this->query($query, array( $this->mPageId ), 520 );
?>

The query() function has the following:

If you're encoding or decoding blobs, we use the following escape functions respectively:

<?php
$blob_data 
$this->mDb->db_byte_encode$imgdata );
$imgdata $this->mDb->db_byte_decode$blob_data )
?>



Permalink (referenced by: 0 posts references: 0 posts)