I see PMA_query_as_controluser (in relation.lib.php; thank to Alex for the help!) is written on the top of PMA_DBI_query and PMA_DBI_try_query methods. PMA_DBI_query is written on the top of PMA_DBI_try_query. I was wondering since PMA_DBI_try_query and PMA_DBI_fetch_result are part of a same class then what different using PMA_query_as_controluser makes?
Also, I tried using it but I got Resource ID#63 error. I think SQL is fine as it worked with PMA_DBI_fetch_result.
Thanks.
-------------------------------------------------- Best regards, Zeeshan Mughal Email: zeeshanmughal@ieee.org Web: http://www.zixan.info
Zeeshan M. a écrit :
I see PMA_query_as_controluser (in relation.lib.php; thank to Alex for the help!) is written on the top of PMA_DBI_query and PMA_DBI_try_query methods. PMA_DBI_query is written on the top of PMA_DBI_try_query. I was wondering since PMA_DBI_try_query and PMA_DBI_fetch_result are part of a same class then what different using PMA_query_as_controluser makes?
It obviously uses the control user's link to make the query, which is the only proper way to do it. Please read Documentation.html about what is the control user.
Also, I tried using it but I got Resource ID#63 error. I think SQL is fine as it worked with PMA_DBI_fetch_result.
Thanks.
Best regards, Zeeshan Mughal Email: zeeshanmughal@ieee.org mailto:zeeshanmughal@ieee.org Web: http://www.zixan.info
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel