[phpMyAdmin Developers] phpmyadmin database update

Michal Čihař michal at cihar.com
Mon Jul 17 19:44:07 CEST 2017


Hi

Manish Bisht píše v Po 17. 07. 2017 v 21:52 +0530:
> I found three ways to execute the query. What is the difference
> between these.
> $GLOBALS['dbi']->query($sql_query);
> $GLOBALS['dbi']->tryQuery($sql_query);
> PMA_queryAsControlUser($sql_query);
> 
> What is the difference between these. What I know is query() returns
> error and tryQuery() doesn't returns error.

And PMA_queryAsControlUser is just wrapper around these two:

https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/relation
.lib.php#L27


-- 
	Michal Čihař | https://cihar.com/ | https://weblate.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.phpmyadmin.net/pipermail/developers/attachments/20170717/56dfc58f/attachment.sig>


More information about the Developers mailing list