Advertisement
Guest User

Eae

a guest
Jul 4th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. $datetime = date_create()->format('Y-m-d H:i:s');
  3.  
  4. $sql="INSERT INTO matchids (numero, senha, jogo, data)
  5. VALUES
  6. ('$_POST[numero]','$login_usuario','$_POST[D1]','$datetime')";
  7. $query = mysql_query("UPDATE useradm SET creditos='$creditofinal' WHERE login='$login_usuario' ") or die(mysql_error());
  8. echo ("<SCRIPT LANGUAGE='JavaScript'>
  9. window.alert('MatchID Criada com sucesso ! ')
  10. window.location.href='../criar.php';
  11. </SCRIPT>");
  12.  
  13. if (!mysqli_query($con,$sql))
  14. {
  15. die('Error: ' . mysqli_error($con));
  16. }
  17.  
  18. mysqli_close($con);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement