Re: [PHP] Using PHP to get size of mySQL data?

This is a discussion on Re: [PHP] Using PHP to get size of mySQL data? within the PHP General forums, part of the PHP Programming Forums category; Untested, but looks about right: select sum( length( article_text ) ) as total from articles_table where user_id = 'user to match"; This ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2003
Robert Cummings
 
Posts: n/a
Default Re: [PHP] Using PHP to get size of mySQL data?

Untested, but looks about right:

select sum( length( article_text ) ) as total
from articles_table
where user_id = 'user to match";

This is SQL though, so it's kinda OT.

Cheers,
Rob.


On Fri, 2003-08-22 at 22:45, Jeff Lewis wrote:
> I want to query a table of text articles and when selecting them I am
> wondering if I can grab the actual size of the articles in question.
>
> So if someone has two articles, I want to see if they have reache 100kb
> in total.
>
> Does that make sense to anyone? is that possible with PHP?
>
> Jeff

--
..---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0