Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. $username="gnews_thunt1";
  3. $password="rcarey2011";
  4. $database="gnews_treasurehunt";
  5.  
  6.  
  7.  
  8. mysql_connect(localhost,$username,$password);
  9.  
  10. @mysql_select_db($database) or die( "Unable to select database");
  11.  
  12.  
  13.  
  14.  
  15. $clues = array("1","2","3","4","5","6","7","8","9");
  16. $imploded_clues = implode(",",$clues);
  17. echo $imploded_clues;
  18.  
  19.  
  20.  
  21.  
  22.  
  23. $query = "INSERT INTO teams VALUES ('','rbedi100@gmail.com','Rishi Bedi',$imploded_clues,'abc','4')";
  24.  
  25. mysql_query($query);
  26. mysql_close();
  27.  
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement