Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here in this part there will be no"operator_id":
- $myusername = $_GET['operator_id'];
- $mypassword = $_GET['telegram_key'];
- $query = $db->prepare("SELECT * FROM telegramlog WHERE operator_id = ? and telegram_key = ?;");
- $query->execute(array($myusername,$mypassword));
- $count = $query->rowCount();
- There will be only: $mypassword = $_GET['telegram_key'];
- operator_id you’ll have to find out with $_GET['telegram_key']..
- We can’t send stable data that are saved in the database - security. So it will only send the key
- = $_GET['telegram_key'].
- So you will have to extend it:
- $query = $db->prepare("SELECT * FROM telegramlog WHERE telegram_key = ?;");
- $result = $query->execute(array($mypassword));
- if($result){
- $mypassword = $result[0]['operator_id'];
- Only an example :) So from telegram you will only get one data and that is telegram_key, nothing more
- That email was sent to me, I am creating a log in forms or form and I don’t really get it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement