top of page
pretdenboderna

Principlesofaccountingicompart1bysohailafzalpdf15







Principlesofaccountingicompart1bysohailafzalpdf15 Fundación Universidad Nacional Autónoma de México, UNAM-Verlag And this is the code: import requests import json url = '' headers = {'Authorization': 'Bearer'+ 'OAuth_consumer_key'} for i in range(0,5): print(url + "?alt=json") data = requests.get(url, headers=headers) data = json.loads(data.text) print(data) The error I am getting is: Traceback (most recent call last): File "C:\Users\david\Desktop\FileUpload\youtube.py", line 20, in data = requests.get(url, headers=headers) File "C:\Users\david\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 78, in get return request('get', url, params=params, **kwargs) File "C:\Users\david\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\david\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 502, in request resp = self.send(prep, **send_kwargs) File "C:\Users\david\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 633, in send r = adapter.send(request, **kwargs) File "C:\Users\david\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 516, in send raise principlesofaccountingicompart1bysohailafzalpdf15 jayasukhaganga3 principlesofaccountingicompart1bysohailafzalpdf15 Jun 1, 2017 $xy moodle I am trying to fetch the username from the text and update that text in a database using php script. I am able to fetch the username from the text but unable to update it in database. Please help me in this regard. I have given an example in my code. 0) { echo "username is exist"; } else { $sql = "UPDATE users SET username = '$username' WHERE username = '$username'"; $result = mysqli_query($conn, $sql); echo "username is not exist"; } ?> A: Replace the if condition with below. 0) { echo "username is exist"; $username_update = mysqli_query($conn, "UPDATE users SET username = '".$username."' WHERE username = '".$username."'"); if($username_update){ echo "Username Updated"; } else{ echo "Username Not Updated"; } } else { $sql = "UPDATE users SET username = '$username' WHERE username = '$username'"; $result = mysqli_query($conn, $sql); echo "username is not exist"; 4bc0debe42


Related links:

0 views0 comments

Recent Posts

See All

コメント


bottom of page