Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. if (count($result) > 1) {
  2. $pdo->query($insertion) === TRUE; //INSERTS AN ITEM TO DATABASE (just to test it - and it works. It adds 'Works' to the database.)
  3. echo "<script> alert("Test"); </script>"; //Testing it with an alert - nothing happens.
  4.  
  5. echo "<script> document.getElementById('inforequest').style.display='block';</script>"; //This works but when the page opens - just a test though, it's not suppose to happen.
  6. if (count($result) > 1) {
  7. $pdo->query($insertion) === TRUE; //inserts 'works' into the database as a test.
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement