View Single Post
Old 11-19-2011, 04:11 PM   #147
edent
Connoisseur
edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.edent has top level security clearance to Area 51.
 
edent's Avatar
 
Posts: 51
Karma: 94224
Join Date: Dec 2009
Location: UK
Device: Likebook Ares, Kindle 3G, Nook STR, 511eb
D'oh! That did the trick. Thanks!

Is there any way to get the size of a file out of the DB? So I can format it "MOBI 2.5MB" etc?

It doesn't seem to work when I change the DB query to
PHP Code:
$data $this->db->query(sprintf('SELECT format,name,size 
(and then loop through the array).

EDIT: the column name is "uncompressed_size" - using that works to get file size.

Love the server - is there a more formal way to contribute patches / bugs / change request?

Last edited by edent; 11-19-2011 at 04:45 PM.
edent is offline   Reply With Quote