sqldatatypes - PHP - What is the "data type" of $link in this case? $link = mysql_connect() -
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 If it connects successfully it will be a resource identifier, otherwise Boolean : FALSE on a MySQL link identifier or failure on success. See: $ 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 ()); }
Comments
Post a Comment