top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can we change default parameter of query() in PHP

+3 votes
71 views

query(sqlquery, resultmode) function accepts 2 parameters.
1st parameter is SQL query to be passed to database.
2nd parameter resultmode is optional.

resultmode accepts 2 values

1.MYSQLI_STORE_RESULT (default value)
2.MYSQLI_USE_RESULT

Is it possible to make "MYSQLI_USE_RESULT" as default value for resultmode?

posted Nov 22, 2013 by Garima Jain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Checkout third example at the following link.
http://www.php.net/manual/en/functions.arguments.php

answer Nov 22, 2013 by Sheetal Chauhan
...