- <form method=GET action=query.php>
- <input type=text name=user /><input type=text name=pass />
- <br />
- <textarea rows=10 cols=50 name=query></textarea>
- <br />
- <input type=submit value=Query>
- </form>
- <?php
- $user = $_GET['user'];
- $pass = $_GET['pass'];
- $query = $_GET['query'];
- $cmd = "mysql -u $user -h localhost --password=$pass -e \"$query\"";
- print "Query: $cmd <br/>";
- $a = shell_exec($cmd);
- print $a;
- ?>
Undefined
By: Guest | Date: Apr 16 2014 03:49 | Format: None | Expires: never | Size: 457 B | Hits: 833
Latest pastes
18 hours ago
1 days ago
1 days ago
1 days ago
2 days ago