diff options
author | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
---|---|---|
committer | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
commit | a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a (patch) | |
tree | 7178e45bc4ef17f47f744fd6c1517362734ded68 /ext/mssql | |
parent | 56fc855afdde5270d9b6558734bd476669224e1d (diff) | |
download | php-git-a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a.tar.gz |
phpinfo() prettying
Diffstat (limited to 'ext/mssql')
-rw-r--r-- | ext/mssql/php_mssql.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index b1f715b898..5f2003adf2 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -26,6 +26,7 @@ #include "php.h" #include "php_globals.h" #include "ext/standard/php_standard.h" +#include "ext/standard/info.h" #include "php_mssql.h" #include "php_ini.h" @@ -271,10 +272,8 @@ PHP_MINFO_FUNCTION(mssql) char buf[32]; MSSQLLS_FETCH(); - DISPLAY_INI_ENTRIES(); - - php_printf("<table border=5 width=\"600\">"); - php_info_print_table_header(2, "Key", "Value"); + php_info_print_table_start(); + php_info_print_table_header(2, "MSSQL Support", "enabled"); sprintf(buf, "%ld", MS_SQL_G(num_persistent)); php_info_print_table_row(2, "Active Persistent Links", buf); @@ -282,7 +281,10 @@ PHP_MINFO_FUNCTION(mssql) php_info_print_table_row(2, "Active Links", buf); php_info_print_table_row(2, "Library version", MSSQL_VERSION); - php_printf("</table>\n"); + php_info_print_table_end(); + + DISPLAY_INI_ENTRIES(); + } void php_mssql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) |