Discussion:
Can we change default parameter of query()
Sachin Raut
2013-11-22 19:00:50 UTC
Permalink
Hi Friends,

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?

Thanks
Sachin Raut
Jim Lucas
2013-11-22 20:31:51 UTC
Permalink
Post by Sachin Raut
Hi Friends,
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?
Thanks
Sachin Raut
Checkout example three at the following link.

http://www.php.net/manual/en/functions.arguments.php
--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sachin Raut
2013-11-23 05:04:17 UTC
Permalink
Thanks you Sir. I got it.

Sachin Raut
Post by Jim Lucas
Post by Sachin Raut
Hi Friends,
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?
Thanks
Sachin Raut
Checkout example three at the following link.
http://www.php.net/manual/en/functions.arguments.php
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
Continue reading on narkive:
Loading...