Posts by ShutUpMagda • 2,056 points
86 posts
-
3
votes1
answer713
viewsA: Add a separator to each item
Although your question is a little confusing, see if this isn’t what you need: .nav .breadcrumb { margin: 0 7px; } @media (min-width: 768px) { .nav .breadcrumb { float: left; margin: 7px 10px; } }…
-
2
votes1
answer60
viewsA: PHPGD image on the other, send back
Before overwriting the images, create a base. So: #Imagem base com fundo transparente $TempPngFile = imagecreatetruecolor(735, 620); $TransparentColor = imagecolorallocatealpha($TempPngFile, 0, 0,…
phpanswered ShutUpMagda 2,056 -
0
votes1
answer233
viewsA: advanced datatables Codeigniter
I was curious, and went to research a little about your doubt. I thought your problem would be solved with this here. See the application (you click on the line to expand the details): .hiddenRow {…
-
1
votes2
answers1766
viewsA: Apache PHP Server with time-consuming processes
There is no such restriction, but it depends on your SO and of hardware. How your configuration uses PHP as a module of Apache, is the Apache who is managing these connections, and he already…
-
1
votes2
answers99
viewsA: What is the correct way to choose column types?
The "correct shape" is the one that corresponds to the purpose you will give the storage. It is recommended to use numeric types for numbers, and varchar for string and text. Understand: If you…
-
1
votes3
answers2875
viewsA: How to add tabs to my modal bootstrap
You are using version 4.* with version 3 markup.*. I used the standard markup of the extracted version 4 from here and worked perfectly: <!-- myModal --> <div id="myModal" class="modal…
-
3
votes2
answers12110
viewsA: Create SSL certificate for https use on localhost
Apparently you’re not doing anything wrong. The fault indicating that the page is not secure appears because the certificate is self-signed (created by you). Read here a clarification on this. As…
-
2
votes1
answer80
viewsA: Bringing Query and Multidimensional Array
Multidimensional array with data shown in a table: # Dados das pessoas $pessoas = array( 'fulanoA' => array( 'nome' => 'fulanoA', 'cpf' => '000.000.000-xx', 'rg' => 'x.xxx.xxx',…
-
1
votes2
answers2740
viewsA: Datapicker in Portuguese
You can set global standards before to define the inputs: $(function () { $.datepicker.setDefaults({ showOn: "focus", dateFormat: "dd/mm/yy", dayNames: ["Domingo", "Segunda", "Terça", "Quarte",…
-
1
votes1
answer353
viewsA: When login appears a message
Before anything, log in: if(!isset($_SESSION)){session_start();}. When $uid <= 0, define $_SESSION['session_alert']['msg']: $_SESSION['session_alert']['msg'] = 'Login realizado com sucesso,…
-
1
votes1
answer1094
viewsA: Problem to generate reports with DOMPDF + Codeigniter
To begin with, I would recommend a more versatile and less complicated library, such as the mPDF. But if you really want to keep using this one, at least look for the latest version: dompdf. This…
-
1
votes1
answer1598
viewsA: How to use, install, free template for Bootstrap 3
The question isn’t really related to github, because your doubt is on how to implement the theme that was downloaded from there, and not on how to use the gihub effectively. The gentelella no…
-
1
votes1
answer595
viewsA: $_SESSION["Danger/Success"] in php to display alerts
logicaUsuario.php is killing the session in session_destroy(); because this function destroys all data associated with the current session: manual. Instead of using session_destroy();, specify which…
-
4
votes2
answers13078
viewsA: run git pull without asking for a password
Has command to store password temporarily: git config credential.helper cache, or command to store the password permanently: git config credential.helper store. The first holds credentials in cache…
gitanswered ShutUpMagda 2,056 -
3
votes1
answer112
viewsA: How to assign a function to an Object Array?
Use json_encode (manual): <?php function retornaGeoCod() { $array = []; for($i = 0; $i < 2; $i++){ $array[$i] = [ "lat" => "-19.4746845", "long" => "-44.159503", "local" => "Prudente…
-
0
votes1
answer153
viewsA: Problem with character decoding
Use mb_substr() instead of substr() manual. An excellent answer in another context, but that fits your question: Problem using subst in text with PHP…
phpanswered ShutUpMagda 2,056 -
0
votes2
answers782
viewsA: Mark radiobutton in php
Test like this: <label><input value="M" type="radio" name="sexo" <?= $vsexo == 'M' ? 'checked="true"' : ''; ?>>Masculino</label> <label><input value="F" type="radio"…
phpanswered ShutUpMagda 2,056 -
1
votes2
answers1165
viewsA: jquery validate does not validate within modal bootstrap
There are other ways to do it (even more elegant ways) but I think you should test it here: index php. <!DOCTYPE html> <html> <head> <meta http-equiv="content-type"…
-
2
votes1
answer2954
viewsA: Take column value from an HTML table and pass to PHP variable
index php.: <head> <script src="//code.jquery.com/jquery-2.1.1.min.js"></script> <meta charset="utf-8"> <title>JS Bin</title> </head> <script>…
-
0
votes2
answers476
viewsA: Codeigniter; Calendaring Class: highlight the current month in an annual calendar
It is also possible expand the class CI_Calendar to make the method generate() pass your value $month for the method parse_template(). So, when generating the declared template, parse_template()…
-
1
votes2
answers476
viewsQ: Codeigniter; Calendaring Class: highlight the current month in an annual calendar
I made a method that writes a VIEW with a calendar table that shows every month of a year using the library Calendaring Class. It works well, and returns it: Code: <?php class Calendar extends…
-
5
votes1
answer2146
viewsA: Repository Synchronization - GIT
I’m guessing you’ve already installed GIT on your local machine and already have an idea of how it works. If you have already done Fork, now you must clone the project to your machine. There is a…
-
1
votes2
answers1374
viewsA: Calling layouts within a modal
Vc can save modals in separate files. Load the modal content by calling id in the other document: myModal.html: <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1"…
-
0
votes2
answers1542
viewsA: PHP progress bar
Use the library jQuery File Upload. They have a tutorial very nice of how to use the basics, but here’s my practical example: <!DOCTYPE HTML> <html> <head> <meta…
-
1
votes2
answers932
viewsA: How to merge images and text with PHP
The first example of this script here: Adding Text to the Image with PHP. After vc can adjust source, positioning, create a PDF from the image, etc. Using truetype font, text placement, write to a…
-
1
votes2
answers1979
viewsA: Pass information to a Bootstrap Modal
Your code, with some amendments: <script type="text/javascript"> $(function () { $("#btnDelete").click(function () { send_data(); }); }); function send_data(){ $.ajax({ url:…
-
-1
votes2
answers474
viewsA: Take the path before saving CI image
$this->upload->data() is a ASSOCIATIVE ARRAY. To assign the "path" value of the file to a variable we need to specify which of the elements of the ARRAY we want to use, which, in its case,…
-
0
votes2
answers1304
viewsA: Alert bootstrap in ajax call
No need to re-load. html <div id="alert" class="alert alert-success" role="alert"></div> Javascript $(function () { $("#alert").css('display', 'none'); $('#teste').submit(function(){ var…
-
0
votes2
answers146
viewsA: Jquery template does not work on HTTPS page
The fact is that HTTP and HTTPS do not talk to each other (their description has this symptom). If the answer comes clean and the connection is encrypted the server will not understand it. Check…
-
2
votes2
answers2638
viewsA: Update Div HTML PHP Javascript
Try this: index php. <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Index</title> <script…
-
1
votes1
answer252
viewsA: Apache in different programming languages
Apache Tomcat is an open source version of Servlet (class) for web development with Java (here). Apache HTTP has a module that enables its operation with PHP (here). I believe the version you refer…
-
0
votes3
answers11941
viewsA: How to pass data from one input to another with html and javascript?
You can do this using Javascript and HTML only: script js. function gohome(){ window.location='form1.html'; } function save(){ window.localStorage.setItem('campo1', $('#campo1').val()); } function…
-
0
votes3
answers614
viewsA: jQuery check php database field
You just need a method controlling this request (safely). Try it like this: CONTROLLER: function check_email() { $this->load->library('form_validation');…
-
1
votes1
answer135
viewsA: Ajax + Codeigniter
To make the server work with URL friendly you need, in addition to activating mod_rewrite module, also enable the Allowoverride directive (read here) in the hosting directory. Just a word of advice:…
-
0
votes2
answers1108
viewsA: Validating an input type field against a select
P/ validate sending entities, make it mandatory to assign required to the Datacontract field depending on the value of select Contract. I would use Jquery: ´$(function(){…
-
0
votes2
answers566
viewsA: Insert into multiple input fields in different tables
I understood that all fields are in a single FORM, and that you send them all in the same request for processing/writing in different tables. You can separate the data passed by the form and create…