Posts by Tiago • 2,377 points
213 posts
-
-1
votes1
answer44
views -
2
votes1
answer1205
viewsA: Integration with Juno Payment API
You must do so: <?php $clientId = "ggdsgsdgd"; $clientSecret = "fsdhshtegeTl#50dS5o4e<;wzzD"; $base64 = base64_encode("{$clientId}:{$clientSecret}"); $ch =…
-
0
votes0
answers56
viewsQ: Abstraction of data between two tables using datalayer
I’m using the https://github.com/robsonvleite/datalayer I need to do the table data abstraction projects. As the projects table has relationship with others, together I need to abstract data from…
-
-4
votes2
answers43
viewsQ: Possibility to search in one or more columns of the same SQL table
I have a splint where several products are displayed. On the left side, there are several options for the person to make filters in the product list. I am trying to create a form if the variable has…
-
-1
votes1
answer32
viewsQ: Swap site root directory with htaccess
How to make sure that when a person accesses the site, the . htaccess recognizes that the site is on /site instead of /, /website where it will contain all the files of the site. And when accessing…
-
-3
votes1
answer165
viewsQ: Doubt about SEO. H1 in the header and article?
I was giving a study on putting together a page with structure prepared for SEO. I saw some video and it made me doubt: Inside my <body>, have: <header> with H1; <main>…
-
-2
votes1
answer314
views -
-3
votes1
answer75
viewsQ: Change the file name when uploading
How do I change the file name when uploading? I would just like to add in the shipping of the file name the date('dmY'). if(!empty($_FILES['uploaded_file'])) { $path = "./uploads/arquivos/"; $path =…
-
0
votes1
answer29
viewsQ: Mount screen with array data
I have an array that is mounted by https://github.com/RamonSmit/Nestable2 I was able to display only the CONTENT main (colour red). I would like to know how to display (CONTENT, PERIODO TYPE) [blue…
-
0
votes1
answer56
viewsQ: Retrieve checkbox serializeArray value
I have a form with several Hecklist. Clicking the array is saved in the textarea. Question Assuming the data is already saved in the BD, when the person is editing, how to load the checkbox that has…
-
0
votes2
answers2044
viewsQ: Stylize checkbox
I’m trying to leave the checkbox this way: But I’m not getting to leave the gray background as a pattern, and only when it’s marked will it be blue. Follow my code: input[type=checkbox] { position:…
-
-2
votes2
answers33
viewsQ: Forwarding of domains
I’m having trouble setting up the redirect Htaccess 301 for a domain. The main domain is the https://www.webfreela.com I need the combinations below to be directed to the main: https://webfreela.com…
-
1
votes1
answer57
viewsQ: Display negative days in calculation between dates
I’m doing a list of accounts receivable. To get interactive, I’m creating an IF to show when it’s near. Problem Shows no negative date, which would represent overdue invoice. In this case the low…
-
0
votes1
answer43
viewsQ: Jquery POST with pause in sending
Good morning. I need to do several POST using Jquery, but they need to be sent one by one, paused. Example: All survey data would be sent, then all environment data and so on. Problem As the server…
-
-2
votes1
answer1194
viewsA: Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.2
Whoever has the same problem, remove all installed java. and when installing, you should use the development java.
-
-3
votes1
answer1194
viewsQ: Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.2
Please help me out! I don’t know what else to do... I’ve read all the help that talks about it and so far I haven’t been able to solve it! Tiagos-iMac:app Tiago$ Cordova run android Checking Java…
-
2
votes2
answers73
viewsQ: Two functions in the same javascript onclick event
I have two functions that need to interact in the same DIV. # ambientEdit(this); Her job is to keeping DIV pressed for 3 seconds, open the screen of confirm() javascript, passing the ID. # survey…
javascriptasked Tiago 2,377 -
-3
votes1
answer25
viewsQ: Get values for the javascript-clicked div
How do I get the values corresponding to DIV clicked?` Example of the first div if clicked, returns: Aid = 1 aCodigo = 8477459164 aNome = Room function vistoriaIniciar(object) { let aID =…
javascriptasked Tiago 2,377 -
-3
votes1
answer63
viewsQ: Image upload from mobile with javascript
I’m creating a survey app with javascript or jquery. The app saves everything inside the phone itself, to then be sent to the server, because it doesn’t always have good internet signal. Example of…
-
-2
votes1
answer49
viewsQ: Display only the div corresponding to the clicked button
I would like to display only the div corresponding to the button clicked. By default a tab tab-dados starts active, but if the button name="hidraulica" is clicked hides the div tab-dados and appears…
-
-2
votes1
answer85
views -
0
votes1
answer450
viewsQ: Recover variable within JS function
I’m logging into JS + Websql, but I’m having a hard time getting the value of the variable. What am I doing wrong? function login() { db.transaction(function (tx) { tx.executeSql('SELECT * FROM…
-
-2
votes1
answer47
viewsQ: Center column on page
I am creating a login/registration screen. I’d like to keep it that way: Only in my code below it is positioned on the left. How to center, equal to the image above? <section> <div…
-
2
votes1
answer61
viewsQ: Applying Semantics Html5
Good morning to all. I’m doing a study in Html5 semantics and ended up with a knot in my head... I wonder if I’m applying semantics correctly. footer { position: relative; bottom: 0; width: 100%;…
-
1
votes2
answers353
viewsQ: Charset utf8 on the Datatable server-side
I’m using the Server-side do DataTable to load my table. The problem is that it’s giving problems in the accents. How do I make that connection server-site either using utf8? $sql_details = array(…
-
0
votes1
answer25
viewsQ: Installer with autoscoll
Good morning. I’m creating an updater and I need to make every $rs run the scroll go down. What is currently happening? It’s a white screen, but it’s running, and when it’s over it’s all at once.…
-
-2
votes1
answer77
viewsQ: Delete image file while deleting from tinymce editor
I’m using Tinymce, to edit the website text and also upload images. The upload and its appearance is working perfectly. Question It is possible to send some GET command with the image name so that…
-
0
votes2
answers104
viewsQ: Convert BD to utf8
I have a mysql database which is from a very old project (~2009). The accents saved in it are this way: Beginning = Beginning Location = Location§ Photo album = Albumen of photos In the SQL file, it…
-
2
votes1
answer989
viewsQ: CPF/CNPJ mask cannot validate CPF
I am mounting a CPF and CNPJ validator with mask. The problem is that it is not mounting the mask properly in the CPF. How to correct this error? The code does the following: At the time of typing…
-
0
votes1
answer70
viewsA: How to group array and mount select
For those who have the same doubt. <?php $rsPA = $mysqli->query("SELECT * FROM provas_agendadas WHERE status = 'A' "); foreach ($rsPA as $key => $rsRowPA){ $temp = explode("," ,…
-
-1
votes1
answer70
viewsQ: How to group array and mount select
How can I group array results and mount select. Database PHP <?php $rsPA = $mysqli->query("SELECT * FROM provas_agendadas WHERE status = 'A' "); foreach ($rsPA as $key => $rsRowPA){ $dis1[]…
-
-1
votes2
answers85
viewsQ: Checkbox alignment in select optgroup
How do I align as in the image below the checkbox and label? Here is not bobbing right, for better viewing can access: http://jsfiddle.net/8f7aLch6/ Code: $(function() { $('#chkveg').multiselect({…
-
0
votes4
answers174
viewsQ: Verify correct answer
Good afternoon, I am making a form of simple questions and answers. I would like to know how to case the answer is to wrong, show the correct alternative in Alert. $(document).ready(function() {…
-
1
votes2
answers2518
viewsQ: Put navbar on the right
How to make the navbar stay on the right. It needs to be this template, because already has the logo, has the menu and when opened on mobile already appears the mobile menu. <nav class="navbar…
-
2
votes3
answers35
viewsQ: Take attribute value when page is loaded and select or modified
I have a select. I need to get the value of the attribute data-idconta when the page is loaded and also when the select is changed. I’m trying to: $(document).ready(function() {…
-
0
votes1
answer686
viewsQ: How to mount foreach to pick array values
Good afternoon. How should I ride the foreach to take the values: Barcode; link; Charge. of this array: array ( 'code' => 200, 'data' => array ( 'barcode' => '00000.00000 00000.000000…
-
0
votes1
answer24
viewsQ: Prepare Shows no error
Does anyone know why you’re not showing error if you fail the execute of prepare? $rs = $mysqli->prepare("INSERT INTO tabela (campo1, campo2, campo3) VALUES (?, ?, ?) ");…
-
2
votes1
answer101
viewsQ: MPDF mounting with php foreach , bootstrap and html
I am trying to generate the MPDF, but this error appears: PHP Parse error: syntax error, Unexpected 'foreach' (T_FOREACH) This error is accusing in the second line that is the first foreach. $prova…
-
2
votes2
answers328
viewsQ: Assemble question and answer array
How do I mount this array, few times did foreach of unserialize, with that I’m having a hard time making this assembly. Model PHP <?php // $campoBD é a simulação do valor vindo do mysql pela…
-
-1
votes1
answer47
viewsQ: How to join these two arrays
I have two array that are generated by inputs: Question <input type="hidden" name="pergunta[]" value="<?= $row_rs['pergunta']; ?>"> and Options <input type="hidden" name="opcao[<?=…
-
1
votes1
answer135
viewsQ: Create a POST with Jquery without form
You can create a Submit POST without FORM? I have some link: <a href="1" class"submit">Teste 1</a> <a href="2" class"submit">Teste 2</a> <a href="3" class"submit">Teste…
-
0
votes0
answers74
viewsQ: Error opening video via modal
I’m trying to open a video using modal but without success. I ask for help in this error and solution. I try to do this: When the mouse passes over the button, the JS, already puts the URL inside…
-
-1
votes1
answer44
viewsQ: Get the last insert id ready
How do I get the last one ID created by insert? $rs = $mysqli->prepare("INSERT INTO tabela (campo1, campo2, campo3) VALUES (?, ?, ?) "); $rs->bind_param('sss', $_POST['campo1'],…
-
1
votes1
answer283
viewsQ: Add variable inside tinymce editor
I’m using the https://www.tiny.cloud/ to create a text editor. At the time of editing, it is necessary to add variables, which at the time of printing will be exchanged for the value corresponding…
-
-3
votes1
answer230
viewsQ: Image does not display in mpdf
I’m not getting to put the logo in the header of mpdf. Does not display and shows any error... The PDF generates, with the text, but without the logo. $mpdf = new \Mpdf\Mpdf();…
-
1
votes1
answer68
viewsA: Error installing/updating package with Composer
For those who have the same problem. Just go in the file php.ini locate the line ;extension=gd2 and remove the ; which is at the beginning of the archive. Ready!…
-
0
votes1
answer68
viewsQ: Error installing/updating package with Composer
I am installing/Updating the package using Composer, but this error appears: Composer.json { "require": { "phpmailer/phpmailer": "~6.0", "mpdf/mpdf": "8.0.2" } } What should I do to correct the…
-
-1
votes2
answers127
viewsA: PHP several Insert along with an update
For those who have the same question, follow the answer. for ($i = 0; $i < $_POST['parcelas']; $i++) { $rs2 = $mysqli->query("INSERT INTO financ_receita (id_cadastro, matricula, parcela,…
-
-1
votes2
answers127
viewsQ: PHP several Insert along with an update
I need to do several insert along with a update. On my application, I gave a print_r($_POST); to see all variables being sent. Array ( [matricula] => 10-03793383-19 [id_aluno] => 11 [id_curso]…
-
0
votes0
answers13
viewsQ: Showing symbols when importing sql database
There was a database on an A server. I deleted that server and am creating a new B server. When importing the.sql file to the B server, the names are all wrong. Imagery: How do I make in the…