Posts by Diego Braga • 319 points
20 posts
-
1
votes1
answer310
viewsA: Redirect to URL with input value filled
If I understand what you want, take the value passed in the url GET after a simple check adds the value to the value of input: $p_t01 = filter_input(INPUT_GET, 'pt01'); //pegando o valor $input =…
-
1
votes1
answer479
viewsA: Problems with mod_rewrite in Apache
your problem is in file writing (apache2.conf) at this point: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted rewrite it this way: <Directory…
-
1
votes1
answer93
viewsA: session_unset($_SESSION)
For you to keep the folder tmp without "filth", the best option is to use the session_destroy poís she destroyed all data stored during session as can be seen here! Already the session_unset that…
phpanswered Diego Braga 319 -
1
votes2
answers297
viewsA: Mysqli_fetch_array in Locaweb, error logging in!
The error at the beginning of the code may be generating the error, where you use SHA1 in the email, where the correct and in the email: wrong: <?php session_start(); require_once('conecta.php');…
-
0
votes1
answer117
viewsA: Problem in php json return
In these cases I use a foreach in javascript, this way and add the field dataType: 'json': $.ajax({ url: 'Controler/consultarCep.php', type: 'POST', data: dado, dataType: 'json', success:…
-
0
votes1
answer1165
viewsA: SMS API integrated with PHP
I adapted a code I have here, to try to help you ## u informed that your form and sending email is already working. so I will not pay attention to this: //SEU CODIGO DE AGENDAMENTO. //supondo que vc…
-
2
votes1
answer162
viewsQ: Mysql problem with empty column query
I have a Query where I give a select with INNER JOIN between two tables (contacts and company), I have a field called id_company where I search in the companies table to find the company name, but…
mysqlasked Diego Braga 319 -
1
votes0
answers167
viewsQ: Generate Reports with large data stream (PHP and Mysql )
I need to generate database reports with a large data stream (between 10 thousand and 150 thousand data), putting this data into a file csv or xlsx (Excel), wanted to know if you have an optimized…
-
1
votes0
answers102
viewsQ: Pays to compress (minify) HTML?
I’m minifying my javascript and css codes and came across the option to minify the HTML codes too, then came the doubt: really makes up for it? Worth saving in size and performance?
-
1
votes1
answer164
viewsA: return of a PHP page for high chart montage
Good solved my problem using a global variable that putting the return of ajax. var chart_live_calls = 0; function requestData() { var passar = 'qtdChamadas=' + 1; $.ajax({ type: 'POST', dataType:…
-
0
votes1
answer164
viewsQ: return of a PHP page for high chart montage
I’m putting together a chart highcharts dynamic, but I have a problem, I need to take a value of a PHP page and put in the point y of the graph, for this I use a function javascript called a priori…
-
0
votes2
answers467
viewsQ: Onclick Javascript not working with "line break"
I’m a problem, I take information entered by the user in the database and put it in a button with onclick for the user to click put it in a modal so that it can edit, I can not put straight into the…
-
1
votes2
answers1183
viewsA: How to send form data via Javascript and redirect
use the setTimeout function, the message will appear and after a while, in case 2 seconds (2000) will redirect to your page.: window.setTimeout("location.href='http://seusite.com'", 2000);…
-
0
votes2
answers71
viewsA: Linux / Node.js Error by Require
I’ve had exactly the same problem as you, and I’ve solved it by removing the ' ./ ': var Main = Electron.remote.require('payment.js');…
linuxanswered Diego Braga 319 -
2
votes4
answers6294
viewsQ: Mask with Jquery changing from fixed to mobile or vice versa
I have a Jquery mask for phone, depending on how much information the user type I understand whether it is mobile or landline. The mask for fixed: (55)9999-9999 cell phone: (55)99999-9999 the code…
-
0
votes2
answers1036
viewsA: Make an SQL query with codeigniter
it was not very clear your question, but come on, you need to connect in the database "website", do so, I will try to demonstrate in the simplest way: try { $usuario = 'site'; $host = 'SEU HOST(se…
-
0
votes1
answer979
viewsQ: Can I generate an excel/csv or pdf from certain columns of a Datatables table?
have a Table: <table class="tabelaRelatorioPausas table table-condensed table-striped table-hover table-responsive " cellspacing="0" width="100%" > <thead> <th><i class="fa…
-
1
votes1
answer395
viewsQ: Can you disable the animation of a Charts.js chart?
has to disable an animation of a chart Charts.js? I’m putting together a chart that updates every 300 milliseconds via ajax, but the animation of the Charts.js chart disrupts the visualization. the…
-
0
votes2
answers55
viewsA: Order by Asc to list increasingly
Felipe, I don’t know if I understand correctly, you need to order the $noticia_tag['title'] correct?. So you can sort the array before inserting it into the div, PHP has some functions that do this,…
phpanswered Diego Braga 319 -
1
votes1
answer68
viewsQ: Validation of PHP file
I have a term insertion system via CSV files, example: 09999999;José 08888888;Maria I get this file to move to the server and then I open this file to insert into the database. My problem is that I…