From a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Thu, 6 Apr 2000 21:07:44 +0000 Subject: phpinfo() prettying --- ext/mssql/php_mssql.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ext/mssql/php_mssql.c') 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(""); - 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("
\n"); + php_info_print_table_end(); + + DISPLAY_INI_ENTRIES(); + } void php_mssql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) -- cgit v1.2.1