Posts by Elanio • 157 points
9 posts
-
1
votes2
answers73
viewsA: How to insert data into Msqli database using current date
What you need to do is update the configuration of Timezone1 of Mysql. This way you can and will have the time according to the country/region you want. Below I show some ways. Change during…
-
0
votes1
answer581
viewsA: How to search an xml file with php?
You can use the SimpleXMLElement to work with XML in the PHP. When using it, you will receive an element with the method xpath. With this method you can use expressions to filter some values, for…
-
1
votes3
answers1320
viewsA: save IMG from external site
You can also do with the NodeJs. You can use the http to download the image and the pipe to write the image on your system. let output = fs.createWriteStream(file); http.get(URL, response => {…
-
2
votes2
answers550
viewsA: (javascript) Taking value from a very complex html structure
You can do this using selectors from jQuery or capturing all elements and returning only one of them through the index. Document.getelementsbytagname With document.getElementsByTagName('table') you…
-
2
votes1
answer98
viewsA: use classList.add
Turns out you’re trying to add a class css in a string instead of an element and so is not working. You must store the input with document.querySelector into a variable and then modify that…
javascriptanswered Elanio 157 -
0
votes1
answer1338
viewsA: Problems with Jquery to get input Text value
The problem is that you are storing the registration in the variable x and then passing the variable matricula for request. Since this variable does not exist, the javascript will use the value of…
-
1
votes1
answer221
viewsA: How to identify the file that is calling a php method?
Use the function debug_backtrace. So you will capture all the step by step that the algorithm did until you get into the file. var_dump( debug_backtrace() ); /* Imprime na ordem decrescente (de…
-
1
votes2
answers41
viewsA: Return Updated Android Date Time
It’s not working because you’re getting the class hash. For your code to work the way you want it, it is necessary to call the attribute value dateString Thus:…
-
3
votes1
answer228
viewsA: Opencart Automatic Maintenance
Cronjob must be used. Knowing that we can go to the code. <?php class ControllerToolMaintenance extends Controller { public function index() { //Aqui o OC vai verificar se a key está correta,…