Posts by Gonçalo • 2,525 points
176 posts
-
0
votes1
answer327
viewsQ: How do I "update" a Function?
Well, I have the following code: <head> <style> body,html,div { margin:0; padding:0; width:1050px; height:69px; position:relative; } #anim {…
-
-1
votes3
answers491
viewsA: How can I make a select and turn it into an array
Gonçalo, you can do it this way: $contador = 0; while($array1 = mysqli_fetch_array($procura1)){ $postos[$contador] = $array1["posto"]; $contador++; }
-
1
votes3
answers491
viewsQ: How can I make a select and turn it into an array
Well, from the title of the question I couldn’t explain very well what I wanted but here it goes in practice: I have a select to a table called "posts". This select wants me to indicate all posts,…
-
0
votes2
answers2295
viewsQ: How to do when clicking a button appear a form with js?
I looked, by stackoverflow and found nothing similar, so here’s the question: How can I, when clicking on 1 button, automatically appear 1 form on the same page with js? Thank you.…
-
0
votes1
answer5767
viewsQ: How to select with an array?
Good is the following I have an array designated by $posts, this $posts array is an array containing several things, such as: Work, Dinner, House, Outside. What I want is to select a table in the…
-
0
votes0
answers24
viewsQ: How to sum the records of a given column
Well, it’s as follows I have the table invoices, with a certain column designated by "earnings". Each record, corresponds to a day, what I intend to do is a php script, which adds me all the "gains"…
-
1
votes1
answer115
viewsQ: How do I check if it’s a Facebook robot?
Is there any way to, with PHP, check if the server access is being done by a robot/bot from facebook?
-
3
votes2
answers10959
viewsQ: How to select between dates
My question is quite simple, I intend to ask a SELECT between dates, from a given table, where the status='1'. I mean, I have for example: $data1 = 13/01/2017 $data2 = 20/01/2017 I want to select…
-
7
votes1
answer11268
viewsQ: What is the programming language for creating Android apps?
What programming language is used to create most Android mobile apps? For example, guide applications, questions etc...
-
1
votes1
answer667
viewsQ: Paypal Api Automated Payments
Is there some kind of paypal api, which I do by clicking a button on my site, send money from my account to another account automatically? Thank you.
-
0
votes0
answers30
viewsQ: How to check how much time has passed from a certain time and date
Well here’s the thing, I have two variables. $data = "27/12/2016"; $hora = "17:20"; I wanted to make a script in PHP that showed me how many days, hours and minutes passed from that date and time.…
-
3
votes2
answers4843
viewsQ: How do I add hours to an hour
Well I have the following hour in a variable: $x = "10:15"; I have two different questions, How do I add 30 minutes to this time. How do I add 1 hour to this time. Thank you.…
-
1
votes1
answer82
viewsQ: How to join arrays in ascending order with Unique array
Good is the following I have the following code: $cars = array("Volvo", "BMW", "Toyota", "BMW", "Ferrari"); $cars2 = array_unique($cars); echo $cars2[0]; echo "<br><br>"; echo $cars2[1];…
-
5
votes2
answers126
viewsQ: How do I know the time and date of a location with PHP?
I intend to store in a variable the current time of Portugal and in another variable the current date of Portugal. How can I do?
-
-1
votes1
answer64
viewsQ: How do I delete repeated values in an array and count their number of values
My question is very simple, as I do to delete repeated values of array, for example: array = banana,morango,laranja,banana,maca How do I delete, 1x to banana so that array stay: array =…
-
1
votes1
answer184
viewsQ: How to divide a variable into an array
My question is a bit complex, for which I will try to explain. I have a php variable, which always shows results as follows: "8017990310062\r8017990142064\r801792340068\r" What I intend to do is…
-
4
votes3
answers4512
viewsQ: How to pass the value of a variable to an Hidden input?
How can I pass the value from a Javascript variable to a input hidden ?
javascriptasked Gonçalo 2,525 -
0
votes0
answers51
viewsQ: How to pass information to a javascript variable
I have the following code: <script type="text/javascript"> document.addEventListener("keydown", keyDownPress, false); var valoresDigitados = []; function keyDownPress(e) { var keyCode =…
javascriptasked Gonçalo 2,525 -
6
votes1
answer86
viewsQ: How to save to a variable what is typed on the screen
I have a web page, and sometimes users press some numbers. However, I have a Reader by usb, I while reading a code it shows me automatically 7 numbers, as if I had typed them on the web page. How do…
javascriptasked Gonçalo 2,525 -
3
votes2
answers937
viewsQ: How many tables does Mysql support?
Well, what I want to do is create a table in my database for each user, now my question is: How many tables does Mysql support? Will put enough tables my server does not lock or gives some bug? Is…
-
3
votes2
answers6898
viewsQ: Is it possible to do Ubmit without refreshing, and without jQuery?
My question is this:: It is possible to do submit of a form, without having to go to the action of that form? I mean, I click submit, I am on the same page but the form is validated, without…
-
1
votes1
answer196
viewsQ: How to make a structure with Divs of the same id
Well, lately I’ve seen in a lot of templates, that a div with the same id, takes places in different space. I as I have little knowledge of CSS, intended to do something that resembles this: That…
-
1
votes1
answer289
viewsQ: How to show a while array of various things
Well, I’ll try to explain my doubt to myself in the best way: <?php $steamid = 76561198337627631; $prices = file_get_contents('prices.txt'); $prices = json_decode($prices, true); $inv =…
-
3
votes1
answer68
viewsQ: Div input type Radius
Well what I want is this. I have several Ivs, and they have inputs like "radios", that is, when people click on the div, it gets edge. Instead of having the Radius ball, people clicking on the div…
-
5
votes1
answer11856
viewsQ: Is there any way to save edits made in the Inspect element?
Well, as the question says, is there any way I can save locally in my browser the changes made in inspect element?. So that every time I go to that site, it’s edited like I did? The preferred…
-
3
votes2
answers2725
viewsQ: How can I check if a table is empty?
I want to check if a Mysql table is empty (with no record) with PHP, how can I do that? What kind of consultation do I make to make sure of that?
-
1
votes3
answers9006
viewsQ: How can I make a Brazilian time clock in real time
I intend to make a clock with Brazilian time, that every time a second goes by it shows that it has passed, ie. Are 14:10:12, 14:10:13 etc... How can I do? Thank you
javascriptasked Gonçalo 2,525 -
-2
votes4
answers3793
viewsQ: How can I put a negative number in PHP?
I mean, I have a variable x. $x = 2; What would be the command so you could put the $x = -2?
-
0
votes1
answer41
viewsQ: How can I select to show only the first 4 records
Well, since my doubt doesn’t quite fit the question, I’ll continue the question here. I intend to make a select, which shows me only the first 4 records of the database. And then I want to do…
-
0
votes1
answer39
viewsQ: Spacing Error
Well here’s the thing, I’m developing a website for a football club, but I’m in trouble. I intended to show 4 players of each type per line, ie in the first line showed at most 4 defenses, and if…
-
0
votes0
answers37
viewsQ: How can I select to show higher number of points
Well, my question is quite simple. I intend to select a * table in my database, but I have 2 priorities. First I want to show all the results in order where the ones with the highest value column…
-
1
votes2
answers27501
viewsQ: How to verify if a number is even or odd?
How do I find out if a certain number that is stored in a variable is even or odd with PHP?
-
0
votes1
answer42
viewsQ: Why is only one select filled?
Well, the following is what I want is to show all the teams, from one table, in that table each row corresponds to one team. However what I wanted to do was show 1 <select> for each team, that…
-
4
votes2
answers925
viewsQ: How do I make a countdown chronometer to a date?
Good is the following I have a following date with an hour, and I would like to know how I could make a countdown chronometer, with days hours and minutes and seconds until I reach that date and…
javascriptasked Gonçalo 2,525 -
4
votes1
answer55
viewsQ: How do I change everything to a single php value
My question is this:: In a table, I have a column designated nomecliente. In this table I have several records, however the column nomecliente of the records are different from each other. How could…
-
0
votes1
answer898
viewsQ: How do I add all the values of a PHP column
Good is so me in my users table, I have the balance column, how do I add the balance of all users, ie the balance of all records in the table with PHP? Thank you.
-
0
votes1
answer122
viewsA: How to close the tab with Javascript?
Gonçalo, you can use javascript: window.close(); With this you can close the current tab.
javascriptanswered Gonçalo 2,525 -
0
votes1
answer122
viewsQ: How to close the tab with Javascript?
Well my question is this, there is some javascript code, which automatically closes the tab that is open on that page? That is I enter a tab of my browser on the oi.html page, there is some code…
javascriptasked Gonçalo 2,525 -
1
votes1
answer34
viewsQ: How to check the domain you are in
Well my question is this:: I have several domains that all point to the same site on my site: www.exemplo1.com www.exemplo2.com www.exemplo3.com How do I check with PHP, which domain you are using…
-
12
votes2
answers5258
viewsQ: How to redirect http to https
Well surely there must already be a question very similar to this in stackoverflow. But before they mark it as a duplicate, I have a specification that I haven’t found any "equal" question to this…
-
0
votes2
answers1572
viewsQ: Hide modal by clicking the bootstrap "Close" button
Well, I have the following file with a modal that was made by a friend to me: However, when you click on Open Small Modal works very well, but when I then click on close the modal does not close…
-
0
votes1
answer191
viewsQ: How do I know the country of a particular IP?
Well what I intended was to know what was the country of a certain IP, I already used PHP geoiplocation, however when I start running on my server appears to me the following error: Fatal error:…
-
0
votes2
answers302
viewsQ: How can I protect myself from proxy servers?
Well here’s the thing, I’m making a site where I pay for every visit to the user that he gets. However, is there any way to know if a given IP is a proxy or not, that is, is there any way to know if…
-
7
votes1
answer2093
viewsQ: How to display error while query?
I’m having the following problem, this query is not entering the data in the database: $inserir2 = mysqli_query($link, "INSERT INTO cliques (emailusuario, brasil, lucrobrasil, portugal,…
-
5
votes5
answers839
viewsQ: How can I add a value to a Row in the comic without having to add variables?
Well, here’s my question: I have the balance of a certain user Row from my database table that has 100€, and I wanted to add +50€, as I can do without having to create a variable with his current…
-
1
votes0
answers32
viewsQ: How to verify from which country a particular IP is
Well my question is this:: I have a PHP file, where I get the IP of the user however, I wanted to check which country is this user and insert in the database. How can I verify from which country is…
-
0
votes1
answer61
viewsQ: How can I select by date and hour
Well what I intend initially is to do a while that shows me all the results of my column reserves. However I want to make a select that shows me the nearest days and then the nearest hours. The name…
-
6
votes5
answers9322
viewsQ: How can I generate a 7-character alpha-numeric key?
How can I generate a key with 7 alpha-numeric characters, completely random in PHP? In other words I want to make a key with numbers and uppercase letters completely random. I’ve tried using Rand,…
-
0
votes1
answer173
viewsQ: How can I send information to Paypal API PHP
Well what I intend to do is to do the following, first, how can I send information to Paypal, through my PHP file of purchase value. That is, the buyer selects the number of items and then click on…
-
1
votes2
answers96
viewsQ: Decimal counting in nodes
I’m developing a system, where I have to start counting at 1:00 and go all the way to a number that will be chosen in the database. What I want to know is how I can make a rising counter in nodes,…