Posts by Baagrel • 55 points
5 posts
-
1
votes1
answer22
viewsA: PHP filter and listing field
When no search value is passed, you are trying to concatenate a string with an object mysqli_result. try to use the code this way: <?php include_once 'conexao.php'; $telefone =…
-
0
votes1
answer33
viewsA: Format timedelta in Django template
I solved by creating the following function: uptime = (datetime.now().replace(microsecond=0) - obj['last_up']) obj['uptime'] = format_uptime(uptime) def format_uptime(timedelta): total_seconds =…
-
0
votes1
answer33
viewsQ: Format timedelta in Django template
I’m having trouble presenting the uptime time of an equipment, Django automatically shows in the following format: I would like to present this time value in Portuguese. in the settings.py Timezone…
-
1
votes1
answer40
viewsA: modify Python variable value
You need to specify which variable you want to add the balance to add_money Tends this way saldo = 0 op = input('O que deseja fazer? ') if op == 'add': add_money = int(input('Qual sera o valor? '))…
-
0
votes2
answers72
viewsQ: Execute request when changing value in a select
I am unable to execute the function when changing the value of select, follow the code below. index php. <div class="input-group m-2"> <!-- Combo Estados !--> <div…