Posts by user54154 • 473 points
46 posts
-
1
votes1
answer261
viewsA: Open Modal without changing page position
This topic was solved with the help of colleague @Icaro Martins, as follows: <a href="#minhaAncora" looks for an anchor in html something like <a name="minhaAncora" or a <div…
-
0
votes0
answers51
viewsQ: Password_bcrypt - PHP
I have a Shell script that generates a password randomly and saves it in pass.txt. In php I have the code below, which opens this pass.txt, takes the password that is in it and generates the Hash…
-
0
votes0
answers35
viewsQ: PASSWORD_BCRYPT - Does not work with Fopen
Goodnight! I use the PASSWORD_BCRYPT function to encrypt my passwords. When I use the code below: //conteudo do pass.txt é: yW9ujS $arquivo = fopen('/tmp/pass.txt','r+'); $linha = fgets($arquivo);…
-
0
votes0
answers362
viewsQ: Error - Connect to Mysql with PDO
I’m trying to connect to a Mysql Database Remotely, through PDO + PHP. Mysql Database is managed by a team, I don’t have access to it. The Database was created and the tables were created. My user…
-
0
votes1
answer45
viewsQ: Error - Select with SUM
Expensive; I have a table with several information, among them a field with value_boleto and another with maturity. It needed first to be ordered the compo due with the current month (current) and…
-
1
votes1
answer74
viewsQ: Remove content between two files
I have two files. A file contains words like a dictionary and another file, contains logs. I would like the file containing the information (Dictionaries) to be removed from the Log file. Remove the…
-
-1
votes1
answer261
viewsQ: Open Modal without changing page position
Expensive; I use Modal Bootstrap inside a While to show captured images inside my Database When I have several lines, with several images, when opening the last ones for example, Popup opens without…
-
0
votes1
answer47
viewsQ: While com Href - PHP
Expensive; I have this code: <?php $sql = "select * from tabela where codsegur = '7562315'"; $stm = $conexao->prepare($sql); $stm->execute(); $count = $stm->rowCount(); if ($count >…
-
0
votes1
answer1656
viewsQ: Download
I have a project that uses Gophish for internal campaigns. This tool has an HTML editor that generates the page in question. The problem I need to be allocated on this page an Automatic Download,…
-
1
votes2
answers1816
viewsQ: Calling function after opening Modal
I have this Jquery code: <script> jQuery(document).ready(function(){ // Numero de click var totalClicks = 0; jQuery('#addpayment').submit(function(){ var dados = jQuery( this ).serialize(); //…
-
0
votes1
answer41
viewsQ: Base64decoder - PHP
I have this code below, where decodes a picture string and displays in the browser, but I can’t save the decoded image with a random name and save to disk. $string =…
-
1
votes0
answers15
viewsQ: Combo Selectoption - Variable 0
I have an HTML page with some tables. among these tables contains a Comboselect and in the last table an input text to fill in a date. When I select the comboselect and enter the date and submit the…
-
0
votes1
answer218
viewsQ: DATE_FORMAT - Mysql function
I have this query below, which brings all the information I need. However the field Resolution is with the date (yy-mm-dd), I need it to return with the date formed as dd/mm/yy: select * FROM…
-
0
votes1
answer17
viewsQ: While with PHP and Datapicker
I have a page that is fed with Mysql Database information. This page also contains an Input Text with dataPicker calendar. The problem is that only the first line of looping works with Datapicker,…
-
1
votes1
answer65
viewsQ: Empty variable - PHP
I have two pages (index.php) and (report.php). index.php has a modal that takes the data entered by the user (start date and end date). Through this imputed information, it is directed to the…
-
0
votes1
answer940
viewsQ: Decoder data:image/png;Base64 with PHP
I need to generate the image converted by string Base64. I have the code below, but when accessing via browser, generates several invalid characters. <?php $string =…
-
0
votes1
answer57
viewsQ: Error in Query Mysql
I have a php page that needs to do a query in 3 fields in Mysql Database. Campo Aprovado Campo Reprovado Campo Resolution $select = mysql_query("select * from denuncia where (resolution is NOT NULL)…
-
1
votes1
answer479
viewsQ: Accountant with Ajax
Is there any way to create a counter type with Ajax? I have the code below, that when we perform a Submit in a form, it calls this ajax, and executes the predefined processes. I wonder if after 3…
-
-1
votes2
answers167
viewsQ: Submit page after 3 attempts
I have this simple form: <form class="form-horizontal" > <fieldset> <!-- Text input--> <div class="form-group" align="center"> <label class="col-md-4 control-label"…
-
1
votes3
answers90
viewsQ: Remove Button and Field
Is there any way to remove fields with definite in Jquery? I have the code below via Javascript, when I do an Input recording the date in the database, I need the button and the input to disappear,…
-
2
votes0
answers228
viewsQ: Visualize Thumbnails
I have a page in PHP where it contains WHILE that should show thumbnail image according to the images I have in the same directory. <?php while($fetch = mysql_fetch_assoc($select)){ ?> <tr…
-
2
votes2
answers1690
viewsQ: Manipulate Data with Date command
Expensive; I have a very simple problem, but I’m not finding a logic for it. I have a file with pre-fixed dates, example 2017-10-31, I would like each month change, this date be added with the…
shell-scriptasked user54154 473 -
0
votes0
answers173
viewsQ: Lightbox - Window without button close
I downloaded the Lightbox package on http://lokeshdhakar.com/projects/lightbox2/, started the script and css : <script type="text/javascript" src="js/lightbox-plus-jquery"></script>…
-
0
votes1
answer226
viewsQ: Photo Gallery in Miniature
I have the code below, where it connects in the bank, takes the name of the image and saves in an Array: while($row = $stm->fetch()) { echo "<img src=thumb.php?img=".$row['foto']."/>"; }…
-
0
votes1
answer209
viewsQ: Ajax does not work
I have this code below in ajax: <script> $("a").live("click", function(event) { var targeturl = $(this).attr("href"); $.ajax({ type: "get", url: "/"+targeturl +"", data: "", dataType: "html",…
-
0
votes1
answer104
viewsQ: Login screen does not validate
I have a simple HTML page that contains only one login and password; <form id="geral" action="valida.php" method="POST" accept-charset="iso-8859-1"> <h3><img border="0"…
-
1
votes3
answers78
viewsQ: Return Most recent date per Column?
I have this table in `Mariadb [accounts]> SELECT * FROM mercado WHERE nome_mercado LIKE 'extra'; +----+--------------+-------------+-----------+-----------+-------+ | id | nome_mercado |…
-
1
votes1
answer852
viewsQ: Calculate boleto/parcel in PHP
I have an HTML form that, after being filled in, the values of the fields are sent via POST method to a PHP file and this file captures these values by sending to the Mysql database. My problem lies…
-
0
votes1
answer45
viewsQ: Geoip with While
I have this code below, and a TXT file with all IP’s. In the code below you have to set the IP directly to get the location of it, however I need it to be automated, I have the Ip’s in a file called…
-
2
votes1
answer238
viewsQ: Compare value of Div
It is possible to scan a div and return its value. For example: <div class='result' id='add9' align='middle'> 1</div> <div class='result' id='add9' align='middle'> 2</div>…
-
0
votes2
answers3834
viewsQ: Change Text Color in Jquery
Expensive; I have an html page that contains three Mysql database information ( HIGH, Medium and Low). I wanted only the word HIGH was in red, Medium in orange and Low in blue. I tried to do via PHP…
-
0
votes1
answer489
viewsQ: Change String Color upon return of Mysql
I have the code below, if the score column has a field with "LOW" the color of only LOW has to be (#FFFF00) and if the field is HIGHT, only HIGHT has to have the color (#FF0000): <?php while($row…
-
1
votes2
answers351
viewsQ: Use of Uniq
I have been researching without much success, something that in theory I believe is quite simple, however I did not find the correct command. I have a LOG file with a lot of information, but certain…
-
2
votes2
answers522
viewsQ: Insert string in first column
I am breaking my head with something very simple, I need to insert a ";" (point and comma) after a Sort/Uniq in a file. As it returns the number of repeated lines, I need this return that is always…
-
1
votes1
answer277
viewsA: Remove Mysql registry with PHP
I found the bug. I had a form tag in my HTML that was generating this problem, removed it and started working. I’m closing this question.
-
0
votes1
answer277
viewsQ: Remove Mysql registry with PHP
I have a PHP page with Mysql connection. Everything works perfectly, however I have a DELETE button, which when clicking on it, takes the ID of that entry, goes to a page del.php and should remove…
-
0
votes2
answers170
viewsQ: Deactivate Combo select
Expensive; I tried several ways to disable the Select combo (mespgto) when the checkbox (radio04) is set to "checked=true", but without success. Could you help me? Obs: The way the function is…
-
3
votes1
answer208
viewsQ: Conversion of timestamp epoch file name to date
Expensive; I have a list of files (140 thousand) with date in the format Unix epoch timestamp in the file name. I need to convert each file to match its actual date by changing its name. Example:…
-
1
votes2
answers173
viewsQ: Enable Select Field with Javascript
Expensive, I have an input text that will receive a date, and after filling this field, I need the selected combo to be activated. By default, they are disabled. if…
javascriptasked user54154 473 -
1
votes0
answers83
viewsQ: Validation with Java Script
Expensive; I created a function in Java Script, where this function is intended to pick the current date and upon this date, as the user selects the flag of his card, calculate whether the invoice…
javascriptasked user54154 473 -
3
votes1
answer621
viewsQ: Creating tables with PHP
Expensive; I have a problem and need a little help. I have an html page that contains some radio Buttons. When clicking on a radio button and then on the send button, it redirects to a PHP page that…
-
1
votes1
answer1558
viewsQ: Add Mysql + PHP fields
I have the code below where I need to add the value of a column (Mysql) and the result of this sum, subtract by any value, example: 5000 and the result of this operation is passed to the PHP page.…
-
0
votes2
answers781
viewsA: Calling Javascript inside Modal
Expensive; I solved my problem with the code below: function copy_form() { id('modalxxx').value = id('xxx').value; id('modalyyy').value = id('yyy').value; id('modalrrr').value = id('rrr').value;…
-
1
votes2
answers913
viewsA: Get input text values inside modal-body
Expensive; I solved my problem with the code below: function copy_form() { id('modalxxx').value = id('xxx').value; id('modalyyy').value = id('yyy').value; id('modalrrr').value = id('rrr').value;…
-
0
votes2
answers913
viewsQ: Get input text values inside modal-body
Expensive; How to get INPUT TEXT values and direct them to Body-Modal? I have a form with several inputs disabled, so that the user does not edit. However, when clicking the button that calls the…
-
1
votes2
answers781
viewsQ: Calling Javascript inside Modal
It is possible to get a result of a Javascript function and play this result inside a Modal? I have this function: <script> $('#download').click(function() {…