PHP MySQL Database


  1. Which one of the following methods is responsible for sending the query to the database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    query()


  1. Which of the methods are used to manage result sets using both associative and indexed arrays?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    fetch_array() and fetch_row()



  1. Which one of the following methods recuperates any memory consumed by a result set?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Once this method is executed, the result set is no longer available.


  1. Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The method num_rows() is only useful for determining the number of rows retrieved by a SELECT query. But to retrieve the number of rows affected by INSERT, UPDATE, or DELETE query, use affected_rows().



  1. Which one of the following statements should be used to include a file?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    include ‘filename’;