Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function do_query(){
  2. global $connection, $page;
  3. $query='';
  4. if (!empty($_POST)){
  5. if (empty($_POST['query'])) {
  6. $error="No query specified";
  7. }else {
  8. $query=$_POST['query'];
  9. #$result = mysqli_query($connection, $query);
  10. #if ($result) {
  11. # $_SESSION['notices'][]="Query successful";
  12. #} else {
  13. # $_SESSION['notices'][]="Query failed";
  14. # }
  15. $_SESSION['notices'][]="Query successful";
  16.  
  17. header("Location: ?page=admin_query");
  18. exit(0);
  19. }
  20. }
  21. include("views/admin_query.html");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement