Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $input = str_replace(array('%','_'),'',$_POST['input']);
  2. if (!$input)
  3. {
  4. header('Location: index.php?action=null value');
  5. exit;
  6. }
  7. $query =('SELECT * FROM sales WHERE datetime LIKE :search OR datetime LIKE :search'.$pages->get_limit());
  8. $stmt = $digital->prepare($query);
  9. $stmt->bindValue(':search', '%' . $input . '%', PDO::PARAM_INT);
  10. $stmt->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement