Accessing information from PHP script, and/or SQL servers, is not as straight forwards as lobbing in a script.
SQL is a language in it's own right, and needs to be programmed to return the data you wish. This is based on the table name, and the column namesvalues and conditions sent.
There are a few MySQL libraries available for Tcl, and 1 module available for eggdrop. Search google for mysqltcl and yoou have one.
After compiling and getting it working, you need to program a Tcl that can send the commands, extract the information, expand/evaluate the details and then display them.
Again, this is based on what your database is storing, and how it is stored.
You can create a ASP script, that will act as the interface bvetween eggdrop and the DB. Eggdrop makes a http connection to the webserver, and requests the info from the script. The script does its job, and returns the data for eggdrop to parse and format.