Posts by Adan Ribeiro • 95 points
6 posts
-
4
votes2
answers2021
viewsQ: Sum with dates and strtotime in PHP
In this small script of a service system, I save the beginning of the service (field DATETIME bank) and the estimated term of its end (field TIME at the bank). Look at: $d1 = "2019-09-23 12:30:00";…
-
0
votes0
answers41
viewsQ: Foreign key in phpMyAdmin brings duplicate record
Problem I have a table called "entidades_category-script" (let’s call 'A') that has the following keys: It turns out that it references another table called entidades_category-script-type (let’s…
-
3
votes1
answer272
viewsQ: PHP character decoding on an IMAP connection
Introducing I’m working on an e-mail box where later I have to filter the messages by senders. But the problem is in coding some "subjects". i make a connection to the mail server through the…
-
0
votes1
answer43
viewsQ: Formdata: Why does the URL appear undefined?
The idea is to take the value of input[name="path"] and use it as the value of url AJAX method. But my console is showing that this value is Undefined. I haven’t been able to figure out why yet. My…
asked Adan Ribeiro 95 -
1
votes2
answers555
viewsA: Post via Ajax arrives empty to PHP
After the comment of @Tobymosque suggesting the use of Formdata, in addition to adding a form in HTML I made the following modifications to my JS: /*var objeto = {flag: "exportar"}; var arr = [];…
-
-1
votes2
answers555
viewsQ: Post via Ajax arrives empty to PHP
I have some values selected by checkboxes that I would like to send to be processed in another PHP script. When I send the post via ajax to a page that receives the $_POST variable and prints it, I…