Posts by Paulo Weverton • 626 points
34 posts
-
0
votes1
answer33
viewsA: Create dynamic Divs (Codeigniter)
The problem is in Model. Note that $id['idImagem'] = $this->input->post('id'); inserts the post value in the index idImagem and in the where query is passed the whole array and not only the…
-
3
votes2
answers112
viewsQ: Grab Scrollpane size when set by anchoring - Javafx
I have a Scrollpane anchored on the 4 sides of an Anchorpane so that when resizing the screen, the scroll also resizes. So I don’t need to specify a fixed size. Until then it works as I want. The…
-
0
votes1
answer183
viewsA: URL problem in codeigniter 3
It can be the same . htaccess and related to the URL override of the server. To use user-friendly URL (excluding index.php from URL) you need to configure . htaccess from the project root as…
-
1
votes1
answer955
viewsA: "Location is not set" Javafx
To load a . fxml make sure to inform the path of this file relative to the folder src of the project. The example below considers that inside the folder src has the following subfolders containing…
-
2
votes1
answer199
viewsA: How to pass variable between views?
You can pass the value via GET to the URL for the method custas. I suggest using <a> in place of <button>. You can use class="btn btn-primary" in the <a> also. It would basically…
-
0
votes2
answers864
viewsA: consult with Internet in codeigniter
Try this solution in your MODEL query method: try { $query = $this->db->query("SELECT * FROM productos p ". "INNER JOIN prodnutri pn INNER JOIN prodpreparo pp ". "INNER JOIN prodingredientes…
-
0
votes1
answer754
viewsA: Save Images from Codeigniter
There are some possibilities like: The maximum file size may be exceeding the MB size allowed by php.ini; (Mainly) if it is Linux you will have to add write permission to your user and group in the…
-
2
votes1
answer158
viewsA: How to modify a url sent via get [Codeigniter] form?
You can create a route where the segments will become the get parameters for a controller’s method or enter in the url the controller’s name and the desired method in the first and second segment…
-
1
votes2
answers6513
viewsA: How to implement a close (close) screen event?
Do the following: public class SuaClasse extends Application { public void start(Stage tela) throws IOException { tela.setOnCloseRequest(new EventHandler<WindowEvent>() { @Override public void…
-
1
votes1
answer219
viewsA: Intermittent Session Error in Codeigniter
This happens because the system is not allowed to manipulate the session file in the default tmp system directory. To fix configure the variable $config['sess_save_path'] in the archive…
-
2
votes1
answer84
viewsA: Save visitors e-mail (Newsletter) with codeigniter
Try the following: VIEW <form method="POST" action="http://www.seusite.com.br/usuario/newsletter"> <label for="nome">Nome</label> <input type="text" id="nome" name="nome"…
-
1
votes2
answers105
viewsA: Join repeats records again?
You should group the records by the main field you are looking for. I believe that if you do $this->db->group_by("elev_plans_types.elev_opename_id"); work.
-
-1
votes2
answers74
viewsA: Select where the id of a previously selected is fetched
Apparently the variable $list is null. The reason for not bringing data from the database may be because the method getAllDisplayable_ing($id) of the ingredient model receives the parameter $id for…
-
3
votes2
answers38
viewsA: Function to form hours
You can format as follows if $time for a timestamp: $horaFormatada = date('H:i:s', $time);
phpanswered Paulo Weverton 626 -
0
votes1
answer295
viewsA: how to make combobox modify a combobox with java desktop database items?
You should add an event to the first combobox and when you select some value on it, you should call another method that searches the database for the data relating to the first one (passing a search…
-
1
votes2
answers985
viewsA: Multiples Tage with javafx
I usually use a class Singleton to work the Stage. So to switch between screens in the controllers call the method loadNewStage of my class responsible for working the Stage. Havestage class public…
javafxanswered Paulo Weverton 626 -
0
votes1
answer66
viewsA: FREE tool for Wireframe
Here are some options: http://iplotz.com/ (Free up to $79) http://pencil.evolus.vn/Default.html (Free) https://www.gliffy.com/ (Free up to $9.95 per month) http://www.mockflow.com/ (Free up to $69…
-
0
votes1
answer84
viewsA: $('#type'). val('juridica');
In your example you use the GET method to submit the form and take the return with POST. When submitting the form using GET take the return with $_GET, if sending using POST take the return with…
-
2
votes1
answer328
viewsQ: form_validation Codeigniter using GET
is it possible to validate a form input using the GET method? When I define that the form method is POST the form_validation works but when I define that is GET the validation returns me false. The…
-
4
votes1
answer428
viewsA: Codeigniter Session Error:
Though it’s not clear where you call ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); session_start();, the error says that a session is already active and stunned, you call…
-
0
votes1
answer810
viewsA: Mysql backup by java
What may be happening is that you are not allowed to run files in the specified directory (C: Program Files (x86) Easyphp-Devserver-14.1VC11 binaries mysql bin _sqldump.bat). Try running a test in a…
-
1
votes1
answer1100
viewsA: Load and save PHP/ MYSQL image
Whenever you need to upload a file you should have the Multipart information on form. html form Multipart <form action="..." method="POST" enctype="multipart/form-data"> ... </form> form…
-
0
votes2
answers854
viewsA: Pass value from a select to a link’s GET parameter
If there is no problem in going through POST and not GET, you can do so: Instead of passing the variables in a link, pass the values in the form. When you use the url in codeigniter you can take the…
-
2
votes1
answer10877
viewsA: Pass parameter bootstrap modal window
You can do it via javascript by populating the modal fields by clicking. Following example Link <a data-toggle="modal" data-target="#modal" class="btn btn-primary"…
-
1
votes2
answers558
viewsA: Keep only one panel open on the Accordion Bootstrap3
This is the correct way available in the documentation of Bootstrap <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default">…
-
0
votes2
answers3282
viewsA: Use Submit to submit a form, within modal, using bootstrap
Here’s an example I use in a system and it works normally. <div id="modal-control" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" class="modal fade"> <div…
-
0
votes1
answer24
viewsA: Re-populate input file type after codigniter validation error
When you get field validation error, change the page load $this->load->view('welcome_message', $data); for redirect('ROTA_PARA_CARREGAR_A_PAGINA'). Being that you must put the values already…
-
0
votes1
answer202
viewsA: Fatal error: Call to a Member Function num_rows()
What is happening is that the variable $query most likely received the value false of the query return in the database. When you try to access the method num_rows() he says that you are trying to…
-
1
votes1
answer229
viewsA: .htaccess directing everything from the URL to index.php
You can add an exception in the first snippet: Code to add: RewriteCond %{REQUEST_URI} !/adm/? How’s your current code: <IfModule mod_rewrite.c> RewriteCond %{HTTPS} !=on RewriteCond…
-
1
votes2
answers124
viewsA: Get more SQL-rated records
Follows solution: SELECT s.nome as 'Supermercado', AVG(c.avaliacao) as 'Média Avaliação' FROM supermercado s INNER JOIN comentarios c ON (s.id = c.supermercado_id) GROUP BY s.nome ORDER BY…
-
3
votes2
answers3444
viewsA: How to test Curl PHP?
It would be better if you showed the part of the code that is giving error. But common errors when using CURL is the fact that it is not installed on the server, the way the data is treated and the…
phpanswered Paulo Weverton 626 -
2
votes1
answer2869
viewsA: Tomcat 9 - #algaworks boot problem
If you want to install and configure the zipped version, you can follow the following steps: Prerequisites: Have JDK installed. (I will assume jdk is installed in the directory C: Program Files Java…
-
0
votes2
answers526
viewsA: I cannot install Tomcat and do not receive message when accessing localhost:8080
Prerequisites: Have JDK installed. (I will assume jdk is installed in the directory C: Program Files Java jdk1.8.0_45) Step 1: Download (the version you want) from Tomcat on the official website…
-
1
votes1
answer1485
viewsA: Run an application without eclipse but using Tomcat. How do I?
I assume you used some eclipse plugin to run Tomcat. I sometimes used the Mongrel plugin, but some time ago it stopped supporting the latest versions of Tomcat. I leave below how to install,…