Hi,
> Using PHP4 and Mysql
>
> After reading the manual and doing vaious searchs around
> the net, I'm damned if I can work out the syntax for
> mysql_info().
I'm looking at the manual for PHP4 here and there is no such mysql_info()
function! The only listed *_info() functions are:
mysql_get_client_info()
mysql_get_host_info()
mysql_get_proto_info()
mysql_get_server_info()
I'm assuming you want info about the server you're connected to, but even
given the functions above, this won't help much as all they return are
version numbers (and are only present in PHP 4.0.5 and above).
What you'll need to do is to issue an SQL query of "SHOW STATUS" and/or
"SHOW VARIABLES" (depending on which pieces of info you require) and use the
relevant records from the result set given back.
Regards,
------------------------------------------------
Basil Hussain ([EMAIL PROTECTED])
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php