Home » MYSQL » Mysql Error handling » Question
  1. What does mysql_real_connect() return if it fails?
    1. NULL
    2. structure
    3. float
    4. integer
    5. None of these
Correct Option: A

The function ‘mysql_real_connect()’ must complete successfully before any other API functions that require a valid MYSQL connection handler structure can be executed. It return NULL on failure.



Your comments will be displayed only after manual approval.