Posts by Wel • 431 points
32 posts
-
0
votes2
answers784
viewsA: Select current date comparison with exact date 1 month ago
Well if I understand correctly you need the two values in the same query, I believe it would look something like this, in case your 'Registry date' field is in date format you will need to group by…
-
1
votes1
answer249
viewsQ: Javascript Onclick function In conflict with the form?
I have a form that sends data to another page, I would like to reset some inputs after sending the form: <form name='protocolo' id='protocolo' class='excluirclienteform'…
-
1
votes1
answer96
views -
0
votes1
answer96
views -
0
votes2
answers260
viewsQ: How to make @media print ignore @media max-width
I have a problem in my css that is generating a "mobile" layout at the time of printing, I have a @media max-width that makes my site responsive, however I would like to ignore it on @media print…
-
0
votes5
answers273
viewsQ: Taking html class with PHP variable in javascript
I’m trying to get the value of a select by jquery from the class, but this class has part of the value as php variable. Currently my code is like this: echo ' <select name="contarecebvenda"…
-
2
votes1
answer239
viewsQ: PHP scandir filtered by name
I’m trying to make a scandir of a directory that will be filtered by a variable that contains the name of the file (without the extension) however I have no idea how to accomplish this, follows an…
-
3
votes0
answers62
viewsQ: Block browser access without Html5 support
I have researched and found some ways to "block" access from specific browsers, but would have some way to do this with everyone who does not have Html5 support?
-
-7
votes1
answer2504
viewsQ: Insert space into a PHP variable
Hello I see that it is a very simple question apparently but I am finding a lot of difficulty in doing this, I must probably be looking the wrong way on the subject, what I am trying to do is the…
-
0
votes1
answer81
viewsQ: Html "Double" Select required
Hello, I’m trying to make a form in html where it contains TWO selects required, but I will use only one at a time, ie when I select one the other required should pass "beaten". The structure is as…
-
1
votes1
answer151
viewsQ: Concatenate what is equal and separate what is different with MYSQL/PHP
Well, I think it’s gonna get a little messy maybe, but I need to do this: In an example table I am inserting several names in the name column, in which many of these names are equal, I would like to…
-
1
votes2
answers54
viewsA: HTML form values are not varying within while PHP
Problem solved, as suggested by Anderson Carlos Woss the problem was in the ID of the popup that was the same in all cases, through a gambiarra I did the following: <div data-role="popup"…
-
2
votes2
answers54
viewsQ: HTML form values are not varying within while PHP
Well, I made an extract that selects the DB data and prints them on the screen through while, which is generating the correct values, but now I’m trying to create an edit button that opens a popup…
-
0
votes2
answers259
viewsQ: Single auto increment on all DB tables
Hello, my DB has several tables that have the same column: `PROD` int(11) NOT NULL AUTO_INCREMENT This column is an identifier that makes one that makes an increment with each launch. The issue is…
-
1
votes1
answer2413
viewsQ: Java external html page script not working
I’m having a problem on my pages after trying to put js in an external file it just crashed, and I couldn’t find the error so far. Follows the codes HTML <script type="text/javascript"…
-
-2
votes3
answers1286
viewsQ: How to clear the value of an INPUT after selecting the radiobutton?
I have two radiobuttons, which have the function of showing/hiding a input each, these two inputs cannot receive values together, only the input that is within the radiobutton selected, would like…
-
-1
votes1
answer113
viewsQ: How to do multiple run with PDO
I have a very simple user update form, but I am not able to successfully update using PDO and mysql. Follow the excerpt of the code I’m in trouble with: if (isset($_POST['ID'])){//Se informar o ID…
-
2
votes1
answer2057
viewsQ: Call php file without leaving the page with HTML
I would like to make a button with the < a > html tag to call an external php code. Example <a href="arquivo.php"> In which the.php file would be just a few commands, which I would like…
-
2
votes1
answer183
viewsQ: Select with PDO and SQL barring HTML
I am trying to make a Select with PDO and MYSQL, but when I put php code in the middle of my html it does not allow the execution of the rest of the page. follows the code excerpt: <select…
-
0
votes1
answer206
viewsQ: Alert script does not work
I have a perfectly functioning file upload code, but Alert in Else condition is not only working IF Alert. Follows the code: if(isset($_FILES['allfiles'])){//verifica o input file, caso estiver…
-
0
votes1
answer148
viewsQ: Create database through PDO
I have a project in mind, in which I would like to create database with the name of variables, and in case it would be done a check to know if the BD has been created, would be something like this:…
-
2
votes1
answer308
viewsA: Save array to different columns with fputcsv
Problem solved by adding a ; at the end of the fput. fputcsv($out, $linha, ';');
-
0
votes1
answer308
viewsQ: Save array to different columns with fputcsv
I am trying to output some data from BD to csv with the following code: while($linha=$buscar->fetch(PDO::FETCH_ASSOC)){ fputcsv($out, $linha); } fclose( $out ); } which returns all the contents…
-
0
votes3
answers1329
viewsQ: Select data with Between in Varchar format
I am redoing the question because I could not get the desired result, I would like to select in the field date but the between is not working, I believe it is due to my date field being in VARCHAR…
-
4
votes2
answers502
viewsQ: Add previous line in mysql
I have a launch line, in which this line would need to receive the value of the previous line +1, some example of how to do this? Table structure: CREATE TABLE `lancamento` ( `data` VARCHAR(10) NOT…
-
0
votes0
answers216
viewsQ: Bruteforce login lock in php
I have a system with captcha on my site to try to block this login, but it is very inconvenient because the user needs to do it every time they log in, so How to show catpcha after N login attempts?…
-
1
votes0
answers30
viewsQ: Protect content from php files?
I don’t know if I’m doing it right, but I have a file called Setting.php in my project, but I’m not sure that it is protected because it contains the login information of the Cpanel admin, so if…
-
3
votes1
answer487
viewsQ: Validate data with PDO
I am migrating my php code in which I was using sql query to PDO, but I am finding it difficult to validate data with this. NOTE:I already have a functional file that does the search in the…
-
0
votes1
answer858
viewsQ: Save variable after refresh php
I have a code that saves the POST from an html form in the $ID variable, in case when this POST occurs the page changes due to this variable, so I would like to save it somehow so that I didn’t lose…
-
1
votes1
answer65
viewsQ: Hide Div on IOS
I have a redirect button for Whatsapp on my site that doesn’t work on Ios, would there be any way to hide it just for that OS? In case it is inside a href in html, just hide it when the user is…
-
-1
votes1
answer194
views -
1
votes1
answer67
viewsQ: Single download page for each user
I am trying to create a user area on my site with PHP and Mysql, so far I have managed to make the login system and a private page for clients. The question is how I could make a single page…