<div dir="ltr"><div style="font-size:12.8px">I have created a new progress.php file in root directory and when I open this file in browser it doesn't show me the data. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9pt"><span style="color:rgb(0,0,128);background-color:rgb(247,250,255);font-weight:bold">use </span><span style="background-color:rgb(247,250,255)">PhpMyAdmin\DatabaseInterface;</span><span style="background-color:rgb(247,250,255)"><br></span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$GLOBALS</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'dbi'</span><span style="background-color:rgb(247,250,255)">]->selectDb(</span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$<wbr>cfgRelation</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'db'</span><span style="background-color:rgb(247,250,255)">]);<br></span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$sql_query </span><span style="background-color:rgb(247,250,255)">= </span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'SELECT </span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-style:italic">*</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold"> FROM ' </span><span style="background-color:rgb(247,250,255)">. </span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$cfgRelation</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'progress'</span><span style="background-color:rgb(247,250,255)">] . </span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">' WHERE type = "export"'</span><span style="background-color:rgb(247,250,255)">;<br></span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$result </span><span style="background-color:rgb(247,250,255)">= </span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$GLOBALS</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'dbi'</span><span style="background-color:rgb(247,250,255)">]->query(</span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$sql_<wbr>query</span><span style="background-color:rgb(247,250,255)">);<br></span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$result </span><span style="background-color:rgb(247,250,255)">= </span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$GLOBALS</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'dbi'</span><span style="background-color:rgb(247,250,255)">]->fetchRow(</span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$<wbr>result</span><span style="background-color:rgb(247,250,255)">);<br></span><span style="color:rgb(0,0,128);background-color:rgb(247,250,255);font-weight:bold">echo </span><span style="background-color:rgb(247,250,255);font-style:italic">json_encode</span><span style="background-color:rgb(247,250,255)">(</span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$result</span><span style="background-color:rgb(247,250,255)">);</span><br></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">and when I add one extra line(mentioned below) it show me the data but with navigation and tabs which I don't need.</font></pre><pre style="white-space:pre-wrap"><font color="#000000" face="DejaVu Sans Mono"><span style="font-size:9pt">include_once </span></font><span style="color:rgb(0,128,0);font-family:"DejaVu Sans Mono";font-size:9pt;background-color:rgb(247,250,255);font-weight:bold">'libraries/common.inc.php'</span><span style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9pt;background-color:rgb(247,250,255)">;</span></pre>I think this might be due to the some security reason. Any way I can show data on this page in JSON format.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 17, 2017 at 9:52 PM, Manish Bisht <span dir="ltr"><<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">I found three ways to execute the query. </span><span style="font-size:12.8px">What is the difference between these.</span><div><div><pre style="font-size:9pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:"DejaVu Sans Mono""><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$GLOBALS</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'dbi'</span><span style="background-color:rgb(247,250,255)">]->query(</span>$sql_qu<wbr>ery);</pre><pre><pre style="font-size:9pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:"DejaVu Sans Mono""><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$GLOBALS</span><span style="background-color:rgb(247,250,255)">[</span><span style="color:rgb(0,128,0);background-color:rgb(247,250,255);font-weight:bold">'dbi'</span><span style="background-color:rgb(247,250,255)">]->tryQuery(</span><span style="color:rgb(102,0,0);background-color:rgb(247,250,255)">$sql<wbr>_query</span><span style="background-color:rgb(247,250,255)">);</span></pre><pre style="font-size:9pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:"DejaVu Sans Mono""><span style="background-color:rgb(228,228,255)">PMA_queryAsControlUser(</span>$sql_qu<wbr>ery);</pre><font face="arial, helvetica, sans-serif"><br>What is the difference between these. What I know is query() returns error and tryQuery() doesn't returns error.<br><br>Thanks,</font><span style="font-size:12.8px;white-space:pre-wrap"><br></span></pre></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_-3105830876822368905gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.<wbr>me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Mon, Jul 17, 2017 at 6:33 PM, Manish Bisht <span dir="ltr"><<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have not passed any parameter to<span style="font-size:12.8px"> function operating with DBI. But the following statements run successfully.</span><span><div><span style="font-size:12.8px"><br></span></div><div><span style="color:rgb(38,50,56);font-size:13px">$GLOBALS['dbi']->selectDb('php<wbr>myadmin');</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">$GLOBALS['dbi']->tryQuery('INS<wbr>ERT INTO `pma__progress` VALUES ("sas", "sas", 50, 100)');</span><span style="font-size:12.8px"><br></span></div><div><span style="color:rgb(38,50,56);font-size:13px"><br></span></div></span><div><span style="color:rgb(38,50,56);font-size:13px">This might be due to I am logged in as root.</span></div><div><span style="color:rgb(38,50,56);font-size:13px"><br></span></div><div><font color="#263238">When we add any table column to central columns from table structure page it was added </font><span style="font-size:12.8px">configuration storage in table</span><span style="color:rgb(38,50,56)"> pma__central_column.</span></div><div><span style="color:rgb(38,50,56)"><br></span></div><div><span style="color:rgb(38,50,56)">I want to do the similar kind of operation and insert data in </span><span style="font-size:12.8px">configuration storage in</span><span style="color:rgb(38,50,56)"> </span><font color="#263238">pma__progress table. The above statements are running without any errors. But the issue is I think there is a better way to implement the above statements because in the entire project directory I have not found that the </font><span style="font-size:12.8px">configuration storage database name and table are hard coded in the statements like I am doing.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks,</span></div></div><div class="gmail_extra"><span><br clear="all"><div><div class="m_-3105830876822368905m_6978681061561071498gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.<wbr>me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="m_-3105830876822368905h5"><div class="gmail_quote">On Mon, Jul 17, 2017 at 4:57 PM, Raghuram Vadapalli <span dir="ltr"><<a href="mailto:raghuram.vadapalli@research.iiit.ac.in" target="_blank">raghuram.vadapalli@research.i<wbr>iit.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Manish,<div dir="auto"><br></div><div dir="auto">When you are dealing with configuration storage, you need to use controluser link for database interface. Otherwise, it will use current user to execute queries. Current user may not have permissions to even access phpmyadmin database. You can do this by passing $GLOBALS['controluser'] as parameter to any function operating with DBI. I am assuming that you have set up controluser and similar parameters in config.inc.php file. If it still doesn't work, please share the error you are getting.</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Raghuram</div></div><div class="m_-3105830876822368905m_6978681061561071498HOEnZb"><div class="m_-3105830876822368905m_6978681061561071498h5"><div class="gmail_extra"><br><div class="gmail_quote">On 17-Jul-2017 3:16 PM, "Manish Bisht" <<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How to use the phpmyadmin configuration database properly.<div><br></div><div>I am using the following code.</div><div><br></div><div><span style="color:rgb(38,50,56);font-size:13px">$GLOBALS['dbi']->selectDb('php<wbr>myadmin');</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">$GLOBALS['dbi']->tryQuery('INS<wbr>ERT INTO `pma__progress` VALUES ("sas", "sas", 50, 100)');</span><br></div><div><span style="color:rgb(38,50,56);font-size:13px"><br></span></div><div><font color="#263238">Let me know if I am correct or wrong. I think I am missing something.</font></div><div><span style="color:rgb(38,50,56);font-size:13px"><br></span></div></div><div class="gmail_extra"><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404quoted-text"><br clear="all"><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.<wbr>me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br></div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404elided-text"><div class="gmail_quote">On Sat, Jul 15, 2017 at 5:07 PM, Manish Bisht <span dir="ltr"><<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks<div><br></div><div><span style="color:rgb(38,50,56);font-size:13px">Just created the table by running import.</span><br></div><div><span style="color:rgb(38,50,56);font-size:13px"><br></span></div><div><span style="color:rgb(38,50,56);font-size:13px">How to save data in the tables by running queries from any file.</span></div></div><div class="gmail_extra"><span><br clear="all"><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042m_-6494879698547783978gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.<wbr>me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042h5"><div class="gmail_quote">On Sat, Jul 15, 2017 at 5:02 PM, Raghuram Vadapalli <span dir="ltr"><<a href="mailto:raghuram.vadapalli@research.iiit.ac.in" target="_blank">raghuram.vadapalli@research.i<wbr>iit.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto" style="font-family:sans-serif;font-size:13.696px">Hi,<div dir="auto"><br></div><div dir="auto">You have to run that sql file. Running it is part of installation process as far as I know.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><span class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042m_-6494879698547783978HOEnZb"><font color="#888888"><div dir="auto">Raghuram</div></font></span></div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042m_-6494879698547783978h5">On 15-Jul-2017 4:38 PM, "Manish Bisht" <<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042m_-6494879698547783978h5"><div dir="ltr">Hi,<div><br></div><div>To store the import/export progress I have added one new table in sql/create_tables.sql file but I can't see my new table in the phpmyadmin database. How to update phpmyadmin database from that file. I guess there is something that do it automatically instead of manually executing the statement.</div><div><br></div><div>Thanks,</div><div><br clear="all"><div><div class="m_-3105830876822368905m_6978681061561071498m_-7750104127023553404m_1823322520858959042m_-6494879698547783978m_-5051300564485803342m_-6225136195198093810gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Manish Bisht</div><div dir="ltr">Email : <a href="mailto:hi@manishbisht.me" target="_blank">hi@manishbisht.me</a></div><div dir="ltr"><span style="font-size:12.8px">Website</span><span style="font-size:12.8px"> : </span><a href="https://manishbisht.me/" style="font-size:12.8px" target="_blank">https://manishbisht.<wbr>me</a></div><div><br></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br></div></div><span>______________________________<wbr>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@phpmyadmin.net" target="_blank">Developers@phpmyadmin.net</a><br>
<a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/m<wbr>ailman/listinfo/developers</a><br>
<br></span></blockquote></div></div>
<br>______________________________<wbr>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@phpmyadmin.net" target="_blank">Developers@phpmyadmin.net</a><br>
<a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/m<wbr>ailman/listinfo/developers</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@phpmyadmin.net" target="_blank">Developers@phpmyadmin.net</a><br>
<a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/m<wbr>ailman/listinfo/developers</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@phpmyadmin.net" target="_blank">Developers@phpmyadmin.net</a><br>
<a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/m<wbr>ailman/listinfo/developers</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>