Stop phpMyAdmin editing queries in a popup window
To prevent phpMyAdmin opening a popup window to edit queries after clicking the "Edit" link, you need to open up and edit the config.inc.php file. This is the root folder for phpMyAdmin. The current releases do not have one of these files by default and you would normally copy config.sample.inc.php as config.inc.php and edit that. (You would have needed to create a config.inc.php file when you installed phpMyAdmin to get it to work anyway).
$cfg['EditInWindow'] = false;