Posts by hulckb • 421 points
30 posts
-
-3
votes1
answer129
viewsQ: Error installing Symphony: fopen failed to open stream: Unable to find the socket transport "http"
I’m following the tutorial for the installation of symfony, but an error occurs while running it [GuzzleHttp\Exception\RequestException] Error creating resource: [message]…
-
0
votes2
answers96
viewsA: Error importing xls to postgres
Solved ! if ($getLinha == ''){ $getLinhaValor = 6; }else { $getLinhaValor = $getLinha ; } //obten a linha do arquivo conforme a escolha do usuario if ($linha_count > $getLinhaValor ){ ..... code…
-
1
votes2
answers96
viewsA: Error importing xls to postgres
I was able to enter the code below: $file = $_FILES ['sel_file' ]['tmp_name'] ; $row = 1; if (($handle = fopen($file, "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {…
-
1
votes2
answers96
viewsQ: Error importing xls to postgres
I am trying to import an XLS file into the Postgressql database, however when I run Submit on the page itself, the error below occurs: Undefined offset: 1 in C: wamp www projects... line 59 Below,…
-
0
votes0
answers893
viewsQ: The pgsql driver is not Currently installed
I’m using the WampServer with the Postgres installed on my local machine and when I access the application occurs the error below: Fatal error: Uncaught Exception 'Zend_db_adapter_exception' with…
-
0
votes1
answer207
viewsQ: Problem after Moodle 2.9 update to 3.3.1 - Theme not Designed for Moodle version
After upgrading Moodle version 2.9 to Moodle 3.3.1+ (Build: 20170727), the following error occurs below: Version Warning: Theme not Designed for Moodle version. Unexpected issues may occur, Please…
-
0
votes0
answers36
viewsQ: To replace Extract, huh?
Analyzing an application with the RIPS tool, I found that the main menu part uses these functions below and is extremely vulnerable: extract( $_POST ); extract( $_GET ); extract( $_SESSION ); Which…
-
0
votes2
answers48
viewsQ: get combo field values before saving
I have an html table with N values and would like to get the values of the fields (combo), property name='caption[]' before saving, just to display to the user the fields he filled in .…
-
1
votes2
answers297
viewsQ: How to get checkbox and option value with jquery
I have the following image below and each checkbox corresponds to the value <input type="checkbox" value="3" class="serie2" id="serie2[3]" name="serie2[3]"> <input type="checkbox" value="4"…
-
1
votes0
answers445
viewsQ: Error generating phpexcel spreadsheet
Friends, I am using the Phpexcel class and every time I will generate a csv this come with the characters not figured as shown below, someone already went through this ? <? session_start();…
-
2
votes4
answers4978
viewsA: Validating Date of birth
Guys, it worked out ... I had to use ajax and php for security reasons, follow the script for anyone who wants to reuse. //Data de nascimento $data_cri =…
-
2
votes4
answers4978
viewsQ: Validating Date of birth
Hello, I am trying to validate birth date less than 15 years using the following rule: 1- If the user enters the date of birth, check if the day, month and year the user has typed, corresponds to…
-
1
votes2
answers135
viewsQ: Check if the e-mail has already been sent
I have the following functionality in my PHP code. // Envia o e-mail $enviado = $mail->Send(); // Limpa os destinatários e os anexos $mail->ClearAllRecipients(); $mail->ClearAttachments();…
-
1
votes2
answers740
viewsQ: Doubt increment $i + loop for
Colleagues, sometimes I come across some snippets in the code used the variable $i before the repeat loop ($i = 0) and in the middle and end $i++, as the examples below: Ex1) $c = count($obj); $i =…
-
0
votes5
answers580
viewsA: Doubt in SQL query "between" or "in"
It worked here, follow the code below: AND STR_TO_DATE(CONCAT_WS('-',i.func_ano,i.func_mes,'01'),'%Y-%m-%d') BETWEEN STR_TO_DATE('$ano-$mes-01','%Y-%m-%d') AND…
-
1
votes5
answers580
viewsQ: Doubt in SQL query "between" or "in"
I am generating a report between date, as the figure below: However, when I enter the starting date: Initial year: 2014 Initial month: 6 and Final year: 2015 Final month: 5 does not bring the data,…
-
3
votes3
answers4536
viewsQ: Incorrect accentuation when generating PDF
After several searches on the net, I could not solve my problem with accentuation (charset). I am generating a report in FPDF and in the description field comes out all disfigured text: I’ve used…
-
3
votes2
answers44
viewsQ: Insert minute by minute into function
I have the following php function below: function showComboHorarios($name, $default = '08:00') { $hi = 6; // hora inicial $hf = 23; // hora final ?> <select style="width: 80px;" name="<?php…
-
1
votes0
answers175
viewsQ: Help to Generate this report in ireport
I have following report in FPDF, I need a help to generate it in ireport format <?php session_start(); // Classe suporte para geração de relatório - Relação de Escolas class PDF extends ImaPdf {…
-
1
votes0
answers530
viewsQ: While loop inside the Ireport
I wonder if there is any way to insert loop inside the ireport ? I have an FPDF report and within it there are two while loop and I would like to redo this report using ireport .
-
1
votes3
answers1147
viewsA: Upload to another server error
Solved the problem, I used the following code below: reference:http://wbruno.com.br/php/upload-de-arquivo-ftp-php/ if( $_SERVER['REQUEST_METHOD']=='POST' ){ //var_dump( $_FILES );//apenas para debug…
-
2
votes3
answers1147
viewsQ: Upload to another server error
I am trying to record some images on another server pointing the IP and the folder, in my PHP code I pointed the path of the folder $_UP['pasta'] = '\\\\172.23.25.4\\\manutencao\\';and the following…
-
1
votes1
answer280
viewsA: Validating text field that is dynamic
Solved, I declared a global variable, follow the code excerpt below. total = 0 if(total){ qntCampos = valor.length; qntParcelas = frm.parcela.length; for(var i = 0;i < qntCampos;i++) { if (…
-
1
votes1
answer280
viewsQ: Validating text field that is dynamic
I have the following Javascript function: //texto grifado cria mais campos valor e numero de parcelas function duplicarCampos(){ if (total >=4) { alert('Número maximo é de apenas 5 campos ');…
-
1
votes2
answers185
viewsQ: Automatically creating input limiting to 5
I’m creating two input fields when I click on the button more (+) I can already generate both inputs, but I need to limit it, only 5 input I need, I tried with while and I was unsuccessful, follow…
-
1
votes1
answer1503
viewsQ: Removing an image via unlink does not work
I have the following code below: //carrega a imagem anterior $img = $db->prepare("select ipco_descr_multimidia,ipco_arquivo from ipco_multimida where ipco_id_questao_fk = :id ");…
-
2
votes2
answers61
viewsQ: property name textarea name="Q1" ate name="Q20" + php
I need the property name="q1" generates a sequence, like this: <textarea name="q1"></textarea> <textarea name="q2"></textarea> <textarea name="q3"></textarea> . .…
-
0
votes2
answers757
views -
0
votes5
answers7871
viewsA: Add onclick event to created element with createelement
Thanks, guys, it worked. I’m using this framework here for questions, I found it very interesting, follow the link http://tympanus.net/codrops/2014/07/30/fullscreen-form-interface/ Hugs, Hulkb…
javascriptanswered hulckb 421 -
3
votes5
answers7871
viewsQ: Add onclick event to created element with createelement
I have the following code: FForm.prototype._addControls = function() { // main controls wrapper this.ctrls = createElement( 'div', { cName : 'fs-controls', appendTo : this.el } ); // continue button…
javascriptasked hulckb 421