Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $input = str_replace(array('%','_'),'',$_POST['input']);
- if (!$input)
- {
- header('Location: index.php?action=null value');
- exit;
- }
- $query =('SELECT * FROM sales WHERE datetime LIKE :search OR datetime LIKE :search'.$pages->get_limit());
- $stmt = $digital->prepare($query);
- $stmt->bindValue(':search', '%' . $input . '%', PDO::PARAM_INT);
- $stmt->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement