Forum Moderators: coopster

Message Too Old, No Replies

Database size

How many does Kbs have for line?

         

romzinho2k7

9:18 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



Hey

Would it like to know there is a way to see how many does KBs a database line occupy?

E.g.:
ID = 10 Login = romzinho Message = Good night...............

Example that is a database. It would like to know how many Kbs the line of the ID owns.

Thanks

henry0

9:34 pm on Apr 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That Should do it [webmasterworld.com]

Now I can be wrong but I will also use:

str_word_count -- Return information about words used in a string

This will give you: The number of words
therefore number of space = number of words minus 1

Next add number of char + number of space

Divide result by 1000 = KB (Should be closed enough)

To make it clean set it as function and use that function