Posts by Kleber Oliveira • 645 points
9 posts
-
0
votes1
answer182
viewsA: Problem with fetch function using onClick event
Asynchronous declaration required async and await in the methods then, apparently the fecth is returning a Promise. Example: function getReady() { const resultElement =…
-
-1
votes2
answers560
viewsA: How to center image
Using the property display with the value flex, you will have more features to align the elements on the screen. Use flex-direction: row;, justify-content: center; and align-items: center; to keep…
-
1
votes1
answer56
viewsA: Loop While and Foreach (PHP & JS) problem
Always complicated to mix two languages server-side and client-side, I assume that none of them should interfere with each other. From this principle, we can arrive at this code: <script> //…
-
0
votes1
answer298
viewsA: Get php return in Ajax
First your request is ajax needs to inform the method that the PHP wait. in this case it is necessary to use the method GET, so I believe that script would look this way: //funcao ajax…
-
0
votes1
answer178
viewsA: Workbench shows error and does not connect
Your Mysql database is not going up the service, see in the logs of Xampp what is the reason for the error.…
-
3
votes2
answers149
viewsA: How to separate obtained Loadhtml results
You can solve this problem using the Domdocument in this way, use getElementsByTagName to fetch the tag table,th and td: <?php $url = 'https://www.zerozero.pt/edicao.php?id_edicao=135716'; $Array…
-
3
votes1
answer273
viewsA: Wordpress and Laravel in same server and same domain
Maybe put the RewriteBase in the archive .htaccess in the folder can resolve. It would look like this: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes…
-
1
votes1
answer356
viewsA: Insert embed video with mysql
Friend, it seems that the problem lies in solving client-side programed server-side. Are you trying to upload content within the select, to do this use the function $.get of jQuery: var conteudos =…
-
1
votes1
answer154
viewsA: How to insert a line break into an appendchild, is it possible?
Come on buddy, the beginning may seem a little confusing, but being careful and paying attention to what you’re developing can work. First, the code is repeating the creation of the input in the…