Forum Moderators: coopster

Message Too Old, No Replies

Echo DB connection successful?

         

JAB Creations

2:35 pm on Apr 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How do I echo a db connection is successful or/and what would be a command in PHP that lists connected DBs? For reference's sake lets say my DB name is 'jab123'.

jatar_k

5:34 pm on Apr 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



to find out whether a connection was successfully made, just test the return from the connect function such as
[php.net...]