Jump to content

Connection established


Butterbean

Recommended Posts

I am trying to learn PHP on my own through examining existing code that I have.  It's code written for a database.  The web app allows the user to login and interrogate the system for and extract information onto a utility bill.  I noticed this nice bit of informational code at the top....  if( $conn ) {     echo "Connection established.<br />";}else{     echo "Connection could not be established.<br />";     die( print_r( sqlsrv_errors(), true));}
I would expect the output would be "Connection established".  

or

 

"Connection could not be established".

 

but it reads this.

 

"Connection established.

You are currently logged in as" 123456

 

 

No where in the code is there a statement that includes "You are currently logged in as".  Maybe I'm overlooking something.  thanks for any help. 

 

I can not send the code because I do not have permission.   Any help would be greatly appreciated.

 

 

Link to comment
https://forums.phpfreaks.com/topic/291636-connection-established/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.