Posts by RFL • 6,205 points
308 posts
-
1
votes3
answers90
viewsA: Insert picture into 2 different tables
I could not with any of the options but they showed me a very good "north". I did it this way only now the problem is that I only inserted an image in album even if I select two. (The cover image is…
-
1
votes3
answers90
viewsQ: Insert picture into 2 different tables
I created a Function to register images as an album; A table for capa and a table for galeria. THE HTML: //Imagem da Capa <div class="form-group"> <label class="col-md-1 control-label"…
-
0
votes1
answer80
viewsQ: Links and Scripts not found with CI-3
I put my header and footer inside a briefcase templates which is inside the folder views, when I try to load the CSS the browser returns the erro 404 - not found, but I am following according to…
-
0
votes3
answers451
viewsA: Exchange Postgresql connection for Mysql connection
Only some connection parameters using postgree and mysql change, for example; rather than putting pg_connectuse mysql_connect, as you are using local server (mysql) there is no need to inform the…
-
2
votes1
answer608
viewsA: Deploying logoff on my login system with UNSET SESSION
To log out/logoff redirect the user to a file named logout.php (for example). Inside this file use: session_start(); // Pega a sessão que já foi iniciada session_destroy(); // Cancela/Exclui a…
-
1
votes1
answer433
viewsA: Icons don’t line up
Try not to use CSS inside the HTML element. To create buttons use the element button of html5. Try it this way: <table> <thead>Tabela <th>Ações</th> </thead>…
-
-4
votes2
answers6021
viewsA: Check if a file has been selected "input file"
You can use HTML5 to make sure the file has been selected. Add the parameter required within your input <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo"…
-
1
votes4
answers364
viewsA: Error saving form data in php
At the beginning of your php file you are trying to start an operation with operador ternário but it is badly formatted; $matricula = isset($_POST["matricula"]) ? $_POST['matricula'] : "[não…
-
0
votes0
answers68
viewsQ: Error inserting in Mysql
I created a form with registration system with images and strings and worked perfectly. Only I tried to add another product without leaving the page and now the form with the class I created doesn’t…
-
1
votes2
answers1805
viewsA: How to calculate and show the running time of a video
I suggest you take a look at getID3 You can access the page at this link! the getID3 is a php clase to see the attributes of a file, see the following example; <?php Include…
-
1
votes2
answers2923
viewsA: if (isset($_POST) Do something, if not another
By default HTML passes the value of a radio button as on or null (vazio) First you should check which of the two has been selected; $radio1 = $_POST['nomeDoRadioButton-1']; $radio2 =…
-
1
votes1
answer2100
viewsA: Doubt with PHP file_get_contents
Go to the file php.ini and change the following lines; Of: allow_url_fopen = Off To: allow_url_fopen = On If you do not have access to php.ini you can also use; ini_get('allow_url_open') or…
-
1
votes1
answer765
viewsA: Send attached files by email form
To send files by form you must use the super global variable $_FILES[] In your form add the field: <input type="file" name="imagem" /> // Não esqueça de adicionar o parametro de midia em seu…
-
2
votes4
answers290
viewsA: Password and redirection
On your button put the type as submit <input id='submit' src='images/enter_button.png' onmouseover="this.src='images/enter_button_hover.png'" onmouseout="this.src='images/enter_button.png'"…
-
3
votes2
answers519
viewsA: Select only the first record of a column
Missed you use GROUP BY+ field. select i.referencia, i.nome, nf.data_emissao from notas_fiscais_itens nfi inner join notas_fiscais nf on nf.id = nfi.nota_fiscal_id inner join itens i on i.id =…
-
-1
votes2
answers476
viewsQ: Create "Slide" from image
I googled plugins/ libraries to do this function but could not find anything. I need to create a "slide" of products like a virtual store, like in this example (but without the zoom). I’m requesting…
-
3
votes1
answer6690
viewsA: Extract PDF information via PHP position
You can use the following: Pdfparser PDF Text Extractor - (requires registration) or this class - (last update 2014)…
-
1
votes2
answers172
viewsA: Placing a Bootstrap class inside a form generated with Codeigniter
According to the CI documentation you should create an array with the attributes you want to add as follows: $atributos = array ( 'class' => 'sua class', 'style' => 'color: #fff;' ); // E…
-
2
votes4
answers886
viewsA: Select data from two tables
Basically that would be. Using PDO: $buscar = $suaConexao->prepare("SELECT * FROM posts LEFT JOIN favoritos ON posts.id = favoritos.id_utilizador"); //Nessa query sera buscado tudo na tabela…
-
2
votes3
answers11643
viewsA: How to convert code block into single line?
The name of this "feature" is minimize/Minify and you can do this using online apps. It’s them: Htmlcompressor Textfixer The issue of leaving in 1 line is irrelevant because the intention is to…
-
1
votes0
answers22
viewsQ: How to assign new category in Gento?
I am trying to add a new category and assign it to a product, however the product is not displayed on the main page. Root Catalog (categoria principal) |--Joias (categoria joias) |-- ouro |-- prata…
-
4
votes2
answers21648
viewsQ: Image alignment with CSS
I have a div that contains another div within, but this second div (from within) contains a <img src="">, how can I do to leave this div with the image aligned in the center of the first div?…
-
2
votes1
answer160
viewsQ: CSS + Bootstrap Alignment
I’m using bootstrap thumbnail but can’t find a bootstrap class to leave the same inline; I’m using this thumbnail. and would like it to stay exactly as it is in the example; have tried in <div…
-
1
votes1
answer52
viewsQ: Data cut in mysql
I am adding a small text in my database but the text is always cut, for example: Company X operates in private security with the aim of preventing and reducing property losses in a given…
-
4
votes1
answer54
viewsQ: Function for file upload
I’m trying to create a function that takes 1 value from a input do tipo texto and 1 file. I was able to move the file to the folder but I’m not able to develop SQL to insert the file name in the…
-
2
votes1
answer682
viewsQ: Return mysql result with function
I’m trying to list a database table using a function but I can’t use it outside the function: THE HTML: <tbody> <?php listar('empresa'); ?> <?php foreach ($row as $listar): ?>…
-
1
votes1
answer99
viewsA: Input within DIV with visibility:Hidden
to hide fields from a form use <input type="hidden" name="NomeDoInput"> Instead of doing this via CSS. if you do not want the data of a form not to be sent to another page using form, leave…
-
2
votes3
answers432
viewsQ: Insert into seat with function
I’m trying to make an entry in the database using a function but I’m not able to enter the respective values; HTML: <?php if (isset($_POST['submitTexto'])) { inserir('empresa', $_POST); } ?>…
-
4
votes3
answers4527
viewsA: Remove currency formatting and take only the PHP number
you can do it in a simpler way too, see if it works: setlocale(LC_MONETARY, 'pt_BR'); echo money_format('%i', $number) . "\n";
-
4
votes1
answer306
viewsQ: Error while installing User
I am trying to install the User on my localhost, but when I arrived at the step of putting the database, user and password I had to check the Skip base URL option (I am using virtual host). the page…
-
2
votes1
answer106
viewsQ: How to install Magento in virtual host?
I’m trying to install Magento on my localhost using virtual host (so it can work) but even I’ve already created the file on /etc/apache2/sites-available with the name magento.conf with the code:…
-
3
votes2
answers854
viewsA: PHP passing parameters
You can place the variable with the ID inside an input of type Hidden and send it via post. <input type="hidden" name="var" value="<?php echo $usuarios->fields['id_usuario']; ?>"> And…
-
1
votes1
answer3721
viewsQ: How to remove redirect loop in Wp?
I’m trying to install wordpress in a domain but am getting an error: This web page has a redirect loop ERR_TOO_MANY_REDIRECTS Does anyone know how I fix this? I’ve searched a lot on google and can’t…
-
1
votes1
answer132
viewsQ: Update mysql table with image
I am trying to upload an image but the table is not updated. already utilizei var_dump($arquivo) and the return is correct, with the file name + extension. the code is in the header of my page and…
-
3
votes1
answer94
viewsQ: Charset Mysql and PHP
My mysql table is UTF-8 formatted and all accents appear correctly, but when I request with PHP and display the data they do not appear in UTF-8 format. p.s: my page already has the goal for utf-8.…
-
5
votes4
answers15429
viewsQ: addClass and removeClass with Jquery
I am trying to create a menu where a div wins a class if clicked, but I would like to remove the class from the last link clicked in the menu. <div id="bolinha-dentro"></div><a…
-
3
votes1
answer1111
viewsA: HTTP error 400 - "senderName invalid value" and "Must fit the patern: d+. d{2}2"
There are 3 errors in your request: The first is the name, the parameter is being passed with a number and Pagseguro does not accept numbers in the name field. senderName invalid value: Flávia1 The…
-
0
votes1
answer1070
viewsQ: Codeigniter local Ok but on 404 server
Hello guys I’m having a problem to open my project in CI on the server I use; my config. if I use /Welcome, for example CI finds the page normally, but if I use any of my controllers it returns 404;…
-
12
votes2
answers2549
viewsQ: Codeigniter + Pagseguro
I’m having some difficulty to integrate a system with pagseguro using codeigniter. I’ve already downloaded the official pagseguro library.…
-
1
votes2
answers2351
viewsQ: mysql file download
I have files in my database that I’d like to download. These files are of various extensions; . pdf, . txt, doc, . xlxs, etc; I looked in many places but found nothing detailed (for beginners). I…
-
0
votes1
answer211
viewsQ: Insert file set into 2 different tables
I have a situation I can’t handle, and I’d like your help. I have a file type input in my form where the user selects several images at once to upload. I would like to insert 1 of these images in…
-
1
votes1
answer37
viewsQ: Insertion of IMG in Mysql
The code I’m using is giving some error in which I can’t identify; If I select image X the upload happens normally, however if I select image Y the system simply does not insert and does not give…
-
2
votes1
answer27
viewsQ: Mysql insert with "Link" between inserts
I’m in big trouble here. I need to upload multiple files and insert them into different tables. The products table contains the details of the products and the photos table the files to access the…
-
1
votes2
answers8654
viewsQ: Compare Date within Mysql
I’m trying to select in the bank the date closest to the current date but I’m not getting a good result. The insertion is: $titulo = trim($_POST["titulo"]); $descricao = trim($_POST["descricao"]);…
-
2
votes1
answer4332
viewsQ: Open project with Localhost - Ubuntu
I’ve searched all day and I’ve asked a lot of people for help but I can’t find what I’m really looking for. I need a step-by-step tutorial on how to open a project with apache on Ubuntu. apache2 is…
-
1
votes4
answers489
viewsQ: Sub-search with SQL
I’m trying to solve a khanacademy exercise in the SQL course and I’m having a little trouble. The exercise calls for the following: To finish creating the "Pop" playlist, add another search that…
-
1
votes1
answer265
viewsQ: Get input value with jquery mobile
I’m trying to get the value of one input and a textarea with jquery mobile and add the values within a div using append() It’s just not working? someone can tell me where I’m going wrong? The input…
-
0
votes3
answers792
viewsQ: Add DIV’s with different ID’s using Jquery
Hello, I tried several tricks (unfortunately) but I can’t find a solution to my idea. I have an "app" that creates a to-do list, only I’d like to add to my list a different id for each div added…
-
0
votes2
answers199
viewsQ: List validation with jQuery
I am solving some exercises in javascript and I came across a situation that I can not solve. I have a small "app" that creates a list of tasks, so far it works normally, I can add a new div within…
-
0
votes1
answer2233
viewsQ: IF condition in jQuery
I am trying to add an IF condition to my study exercise in jQuery and I have a small problem. the code below creates a short list of tasks and when clicked on the div created by jquery it is…