Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. /^([-a-zA-Z/-&\?!,.'"s0-9@:=_]{1,1000})$/
  2.  
  3. public $regex = array ('char' => "/^[a-zA-Z.s]{0,50}$/",
  4. 'misc' => "/^([-a-zA-Z/-&\?!,.'"s0-9@:=_]{1,1000})$/");
  5.  
  6. if(preg_match($this->regex[$validation],$this->filteredValue[$fieldName])) {
  7. $this->messageArray[$fieldName] = '<span class="cheers"> &nbsp; Thank You</span>';
  8. }
  9.  
  10. /^([-a-zA-Z/&\?!,.x1b"s0-9@:=_-]{1,1000})$/
  11.  
  12. <?php
  13. // Query
  14. $query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'",
  15. mysql_real_escape_string($user),
  16. mysql_real_escape_string($password));
  17. mysql_query($query);
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement