|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-03 18:57 UTC] georg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
Description: ------------ my name is mazdak.farrokhzad i would like to request a mysql feature that would be mysql_db_size(),mysql_table_size(),mysql_column_size() and mysql_row_size what it would do is that it would get the lenght of a db,table,column and row this would make the amounts of queries less and this could be implemented for other databases too if this is for plugin makers could you tell the please Reproduce code: --------------- here i am showing an example mysql_connect('...','...','...'); mysql_select_db('...'); --> beacause db is selected you should not need to use the db parameters for table,column,row,size let all functions accept float and let them return true/false echo mysql_db_size(mixed_var)/1024.'kb'; echo mysql_table_size(mixed_var)/1024.'kb'; echo mysql_column_size(mixed_var)/1024.'kb'; echo mysql_row_size(mixed_var)/1024.'kb'; Expected result: ---------------- depends on what you have in your code above like 4kb 1.03715kb 0.005kb 0.000072436kb Actual result: -------------- look above