top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can we change default parameter of query() in PHP

+3 votes

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)

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.

answer Nov 22, 2013 by Sheetal Chauhan