I won't call it the best, but I've always gone back to Eclipse PDT (http://eclipse.org/pdt) after working with other IDEs.
Reasons:
I have the impression its autocomplete is better than that of netbeans or vs.php.
It keeps a list of projects. This makes it easy to have multiple projects open or switch quickly between them.
CTRL+SHIFT+R (open file) and CTRL+SHIFT+M (open method) are indexed and very fast.
Drawbacks / Annoyances:
It's a beast. This is mitigated by having a very powerful pc.
Plugin installation is a nightmare sometimes (eg SVN).
Project type silos. To get a PHP support on Hg project I have to edit the .project files. SVN + PHP does not have this issue.
No option for project specific formatting (tabs/spaces).
When a non-active file is updated from the outside (eg git pull), Eclipse complains that its information is out of date and needs to be refreshed. The shortcut doesn't work so you have to go mousing around.
Depending the injection location you can work with UNION (see BTMPL's response) or use the MySQL function SLEEP. This way you can test eg passwd characters by the response time of the server.
mysql_query does not support multiple queries. As the attacker seems to know.
Inadvertent updates, satisfying selects (pass) and retrieving secret info from the db (UNION SELECT) are more likely.
If you hate the isset and do not want to ignore notices (because they are very handy), use
The first part of your comment is dangerous.
Escaped values in the query can still be used for SQL injection if they are UNQUOTED eg SELECT foo FROM bar WHERE id = $id.
I won't call it the best, but I've always gone back to Eclipse PDT (http://eclipse.org/pdt) after working with other IDEs.
Reasons:
Drawbacks / Annoyances:
edit: formatting, adding SHIFT
Depending the injection location you can work with UNION (see BTMPL's response) or use the MySQL function SLEEP. This way you can test eg passwd characters by the response time of the server.