R::getCell( 'SELECT id FROM users WHERE email = :email LIMIT 1' , [':email' => $email] );
$tim_baz = $time_rus->fetch_all(MYSQLI_ASSOC);
print_r($tim_baz);
while ($tim_baz = $time_rus->fetch_assoc()) {
print_r($tim_baz);
}
import time
while True:
print('test')
time.sleep(1)
$get_data = json_decode(
file_get_contents('https://jsonplaceholder.typicode.com/todos/1'),
true);
print_r($get_data);
Array
(
[userId] => 1
[id] => 1
[title] => delectus aut autem
[completed] =>
)
stdClass Object
(
[userId] => 1
[id] => 1
[title] => delectus aut autem
[completed] =>
)
def post_message_to_discord(message):
url_webhook = 'https://discordapp.com/api/webhooks/546578855555I'
data = {'content': message}
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
r = requests.post(url_webhook, headers=headers, data=data)