sqldatatypes - PHP - What is the "data type" of $link in this case? $link = mysql_connect() -


Disclaimer

I know that mysql_ [command] functions get weaker It is for a school project and before they get disconnected, I did not mark the "up-to-date-ness" of the functions used, only because of the complex-nature of the program I have written so that the PDO or There was no incentive to change Myscle. For example, despite not being defined in the same way as vb.net, I must include a variable-listing of all variables (including data type ...).

My big question is!

What is the data type of variable $ link in the code listed below? Where a data type is a string, integer, bullion value, etc. For example ...

  $ link = mysql_connect ('localhost', 'mysql_user', 'mysql_password'); If (! $ Link) {die ('could not connect:' mysql_error ()); } 

If it connects successfully it will be a resource identifier, otherwise Boolean :

FALSE on a MySQL link identifier or failure on success.

See:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -