Posts by Gonçalo • 2,525 points
176 posts
-
8
votes3
answers10028
viewsQ: How to display input type range value
Well, I have the following code: <input type="range" name="vol" min="0" max="100"> I would like to know how to show next, the value in real time that is selected, ie the user dragged with the…
-
3
votes2
answers579
viewsQ: Receive real time variable ajax
Well I’m making a system, and I need to receive a php page variable every time, so I can work on it on my index.php page. A friend of mine who understands more of ajax than I gave me the following…
-
-5
votes2
answers175
viewsQ: What would be the best way to make a website with responsive design
Well, whenever I try to make some site, in html and css (since I’m not very good at design), the site is perfect for me, all right etc... But when I go to look in another computer, I mean with…
-
0
votes1
answer254
viewsA: Help to convert mysql to mysqli
Do it this way: In connection with the database: $link = mysqli_connect("localhost", "user", "senha", "banco") or die("Erro a conectar"); And whenever it is necessary to use the mysqli query calls…
-
1
votes2
answers467
viewsQ: How to multiply one variable by another
I would like to know how to multiply my price variable by this part "[value1, value2, Valor3]" in the following code: var totalvalores = [valor1, valor2, valor3] .reduce(function(total, nr) { return…
javascriptasked Gonçalo 2,525 -
2
votes2
answers720
viewsQ: Replacing "NAN" with 0 in Javascript
Well, what I intended was to replace the javascript word "Nan" with 0. I’ve searched some topics here on stackoverflow but none helped me. What would be the code to make this change? Thank you.…
javascriptasked Gonçalo 2,525 -
1
votes2
answers29597
viewsQ: How I keep html elements on the same line
Well theoretically my question is the following, I created two Ivs in html, however when doing the second, the second div is not on the same "line" as the other but rather on the bottom. I wonder if…
-
-1
votes1
answer47
viewsQ: Animation move from right to left direction
I have this little animation in javascript, which makes my background move however, this sometimes moves from right to left and has other times that moves from left to right. How would you ever move…
-
0
votes2
answers318
viewsQ: Change background-position with Javascript
Well, first of all I’m sorry, but this question is a little difficult to express. What I want to know is if there is any javascript code that makes the background-position move very fast, until very…
-
-2
votes1
answer50
viewsQ: Receive real-time count from a program
It is possible to make a program. exe, which had a 60-second timer, and every second it passed would send information to a php page and this php page showed the change of seconds in real time…
-
0
votes1
answer130
viewsQ: How to show a whole image
Well, I removed a layout from the internet to edit it, but when I do <img src=""> and then I put a <a> back and a <a> the front of the image, I only see a part of the image and I…
-
1
votes1
answer548
viewsQ: Limit body size to screen size
Well, what I wanted was to limit the size of the body so that it was the size of the screen without having to scroll. It’s because I’m developing a project where there’s a lot of white space under…
-
0
votes1
answer598
viewsQ: Increase image size
Good, I have this code that after filling 1 form uploading with an image, this code puts the image that was uploaded in a folder. Code: <?php error_reporting(0); include("config.php"); $idcarro =…
-
0
votes0
answers39
viewsQ: Get smaller id with status = 1
I recently opened a question in the stack overflow, how do I get the highest id with a select and status = 1. Question link: Get higher and lower id with status = 1 Well, now my doubt is contrary,…
-
0
votes1
answer1092
viewsQ: SELECT with various parameters in PHP
Well what I intended was to make a select, with several parameters other than just 1. $verifica = mysqli_query($link, "SELECT * FROM usuarios WHERE login='$login'"); In the case of the above code I…
-
-2
votes1
answer10125
viewsQ: Input with states of Brazil and when selecting to show cities of that state
Well, basically I have the following code with all the states of Brazil. <select name="estado"> <option value="estado">Selecione o Estado</option> <option…
-
-1
votes1
answer43
viewsQ: Accentuation error database Data Collection
Well, I have a query that takes data from a database table and stores it in an array, however, the data in the database has accents. When I go to print on the screen the data with <?php echo…
-
1
votes1
answer146
viewsQ: Limited Registration Number mysql_fetch_array
Well, I recently created a question here at stackoverflow where I asked, how would I collect Rows from the database with the criteria I wanted. However I found that I could use mysql_fetch_array to…
-
1
votes1
answer2451
viewsQ: Href does not work
Well, I’m developing a platform and I wanted when they click on the "See" button to google, but it’s not going to google and after I click the site is http://meusite.com/meuarquivo.php? with a…
-
2
votes1
answer70
viewsQ: How to make a body have a scroll
How can I make a website body have scroll, so users can pull the bar down and up to see all the site information.
-
0
votes2
answers360
viewsQ: How to validate in HTML forms
How mandatory fields are made in HTML forms (those that commonly use an asterisk * to indicate mandatory)? There is a parameter directly in the tag input? If not, how is the validation done (for…
-
7
votes1
answer2736
viewsA: Error "Doesn’t have a default value" when trying to insert data into DB
The problem is that you have to pass some value to the database columns that are NOT NULL, the column can not be without anything, ie the INSERT have to have something to fill the column.…
-
5
votes1
answer2736
viewsQ: Error "Doesn’t have a default value" when trying to insert data into DB
I was trying to enter the variables I received from a form when I received this error message: 'nidcrespons1' doesn’t have a default value My code: <?php $link = mysqli_connect("localhost",…
-
-5
votes2
answers1543
viewsQ: Search the database and display with while
Well in this case, my question is this, I select the database with the criteria I want you to have. How can I then do a while to show these results, which were fetched from the database. Thank you.…
-
0
votes2
answers180
viewsQ: Click on a little sign of + and appear more inputs
There would be some way for a user to click on a small image with a +sign, add more inputs to the form. In case I have the following inputs: Identificação do Responsável da Empresa 1: <input…
-
2
votes2
answers307
viewsQ: As only receive gets from a certain IP
I have to receive Gets with important information, and can only be via GET and not via POST. I was wondering if you have any way to receive the Gets from another server, only if that server had a…
-
0
votes2
answers1225
viewsA: Login System - PHP and Jquery
For mysqli you can do as follows: $link = mysqli_connect("localhost", "login", "senha", "bd"); $verifica = mysqli_query($link, "SELECT * from users WHERE id='$id'"); I gave an example, now it’s…
-
-4
votes1
answer79
viewsQ: Error md5 offertoro
Well I am creating a site, where users earn points when completing offers, and when completing the system gives points. Yet I have the following code: <?php $oid = $_GET["oid"]; $amount =…
-
0
votes2
answers2693
viewsQ: Click on an image to show a div
My question is as follows, when you click on image 1, div 1 appears, but then when you click on image 2, div 1 disappears and div 2 appears, and then when you click on image 3 div 2 disappears and…
-
0
votes0
answers65
viewsQ: Get all Steam Items
Well, I have the following code that gets you items from a particular player’s inventory. However it only shows me 1 type of each item, ie if the player has 5 boxes of the same type, it only shows…
-
6
votes3
answers1884
viewsQ: Javascript timer
Well what I wanted was to make a 60-second timer. which would work as follows: Count 60 seconds down 60.59.58, 57, etc... and when you hit 0, pause 0 for 3 seconds, and start all over again 60.59,…
javascriptasked Gonçalo 2,525 -
-1
votes1
answer54
viewsQ: Get part of a website
Good what I intended to do is to get the part of a site with php and store in a variable $price. Well the link is as follows: http://steamcommunity.com/market/priceoverview/?…
-
1
votes2
answers122
viewsQ: Get higher and lower id with status = 1
I have a table in the database with several lines, I wanted to get the highest id, which has status = 1, how can I do this with php? The id is a table column and the status is another. Then I also…
-
-1
votes1
answer41
viewsQ: Ajax Javascript error
Good I have the following Javascript code function fun() { $.ajax({ url: 'aposta.php', success: function(a){ if(a) { a = JSON.parse(a); $("#tempo").html(a.time); if (a.time === 0) {…
-
0
votes1
answer2390
viewsQ: Validate Form without changing page
I have a certain input of type submit that when clicking acts on a pagina.php. I wanted you to do this, but when you clicked it didn’t change the page, but act on this one pagina.php. HTML:…
-
0
votes1
answer61
viewsQ: When the time reaches 0, the button gets disabled
Well here’s the thing I got two files. First File (index.php): <!DOCTYPE html> <html> <head> <title>Teste</title> <script…
-
3
votes2
answers50
viewsQ: How to send hidden information through a form?
I want to send information through a form, however I do not want it to appear in a field, I mean, I want to send information via post, but without it appearing in a input. How to do this?…
-
0
votes1
answer44
viewsQ: Is it possible to add a php code in a . js file?
Well my question is if it is possible to add a code If not, how can I make it possible. Thank you
-
0
votes2
answers74
viewsQ: Retrieve data from the database
Good is the following I have the following code: <?php $verifica = mysqli_query("SELECT * from dados WHERE login='$login'"); $array = mysql_fetch_array($verifica); $array[senha]; ?>…
-
-4
votes1
answer179
viewsQ: Get CS:GO JSON item status
Good is the following I have the following code that causes you to take all items/weapons from the inventory of a particular individual and show it. Well what I wanted to know is how do I do apart…
-
-1
votes1
answer2779
viewsQ: Update DIV in Real Time
I would like to update only one div of a site, without updating the whole site and that this div was updated of 0.1 seconds every 0.1 seconds, and for example would not need to refresh or re-enter…
-
0
votes1
answer64
viewsQ: Partially change a page via Javascript
I wanted this code to just update a part of the site and not the whole site. Because when I run the function on a div, it updates the whole site. <script type="text/javascript"> function…
-
0
votes1
answer791
viewsQ: Date Timer
Good is the following I have a certain date and a certain time. I wanted php to show me how many days, hours, minutes and seconds are left for that particular date and that particular time. I mean,…
-
-2
votes1
answer236
viewsQ: How to make a countdown timer on nodejs
My intention is to make a countdown timer in javascript, even if no one is on the site the timer continues to count unbelievably. How can I do that? Thank you.
javascriptasked Gonçalo 2,525 -
1
votes1
answer89
viewsQ: How to change background-position property?
I would like to know a javascript that changes the background-position of a particular div. I’m trying to get the position of the background.
javascriptasked Gonçalo 2,525 -
1
votes2
answers340
viewsQ: How to make after a while the color of a div change
Well, my question is this:. How to make a timer on a website, with a countdown of 30 seconds (Real-time), and when it reaches 0, the color of a div changes, even if no one is on the site this has to…
-
1
votes3
answers1779
viewsQ: How to do that by clicking a key a Submit is sent
Good is the following, I have a chat on my site, the chat has a text field and a send button that is to send. That is, the person type in the text and then have to click on the send. I would like to…
-
0
votes2
answers3429
viewsQ: Is it possible to capture PHP code from a page using CURL?
How do I execute the PHP code of a particular page within my application, and I do not own this application.
-
5
votes2
answers3496
viewsQ: How to run a file with PHP?
I wanted to know some code in PHP that makes me open a file .exe, or a line that makes a file run .exe from the same server.
-
2
votes1
answer46
viewsQ: Double Message Error Javascript Ajax
I tried to make a code so that when I changed something in a div, I would automatically change the page in real time without having to refresh or anything like that, however when I change the…