Posts by Fabio Henrique • 2,156 points
146 posts
-
0
votes1
answer156
viewsQ: Error Creating mysqli connection
I’m trying to create a connection by MYSQLI but this giving error Fatal error: Call to Undefined Function mysqli_connect() in /home What could that be? That $link = mysqli_connect("localhost", "xx",…
-
4
votes3
answers2852
viewsQ: Passing Javascript Variable into an Input text
In this code below I need to pass the variable Var url_current inward As I have no knowledge of javascript I would like a little help on how to do this function loginMeuSite() { var url_atual =…
javascriptasked Fabio Henrique 2,156 -
0
votes2
answers135
viewsQ: Picking wrong id when selecting line with Checkbox
In this script below I make a loop in rows of a table, where it contains in each row a checkbox and hidden inputs. The problem is that when I select a few lines with the checkbox, the values…
-
0
votes2
answers1031
viewsQ: Pass external variable or Constant into a Function
How to pass a variable into a function with that variable on the outside. I don’t know what else to do . <?php $id_transfer = $_SESSION["id_transfer"]; $ptv = $_GET["tipo"]; /////// Função Pegar…
phpasked Fabio Henrique 2,156 -
4
votes2
answers296
viewsQ: How to run "setInterval" without initial delay?
In this code below, it updates a div every 20 seconds. Only when entering the page I have to wait 20 seconds for it to appear. I would like it to appear already at the beginning, when entering the…
-
2
votes2
answers48
viewsQ: How not to let a Domain appear on Google and other search engines
I have an online system and would not like my domain to appear on google or other search engines, would like to make it private. there is some way to do this?
-
1
votes1
answer455
viewsQ: INNER JOIN Group Very slow in consultation
I have a select in mysql that is taking too long to return the records, I noticed that it occurs after the table gets fuller. This select makes 4 INNER JOINS and takes the last record of each id…
-
3
votes1
answer56
viewsQ: Round result in script
In this my script how can I round up my result? I’m trying to use the (total.toFixed(2)); more does not work. <input type="text" name="total" id="total" value="resultado" /> function…
javascriptasked Fabio Henrique 2,156 -
2
votes1
answer89
viewsQ: Add One More Field to Inline Calculator
I don’t know much about javascript and I need a little help. In this script at the bottom link in jsfiddle I need to add another field to perform the calculation. It pays the value of an input and…
javascriptasked Fabio Henrique 2,156 -
1
votes2
answers44
viewsQ: Make an image grow proportionately to specific limit
Make an image grow proportionally to the limit of an area follow the example in the image below…
cssasked Fabio Henrique 2,156 -
1
votes2
answers202
viewsQ: How to Exchange Arrays query for Selects query in Mysql
I’m not sure how to exchange arrays for query in sql, in this code below you have an array with records like to know how to exchange the array $tabela_modelo by a select in Mysql using the same…
-
3
votes2
answers2157
viewsQ: Add value to a checkbox Instantly
Since I don’t have much knowledge of javascript I would like a help of how I can make this calculation script, I would like when clicking on each checkbox to automatically show me the result on the…
-
2
votes1
answer1197
viewsQ: INNER JOIN with matching column conflict
In this SELECT JOIN, all tables have columns with the same name. With this, it gives a conflict when listing. Example: column Id_saida it is in all tables. How to list each of them? $cmd = "SELECT…
phpasked Fabio Henrique 2,156 -
0
votes1
answer342
viewsQ: Query in mysql GROUP BY listing and adding at the same time
How I do a query in mysql GROUP BY listing the rows and returning me a sum of a column x Example DB | id | nome | nota | | 01 | Fabio |` 10 | | 02 | Fabio | 20 | | 03 | Leo | 25 | | 04 | Leo | 25 |…
phpasked Fabio Henrique 2,156 -
2
votes1
answer82
viewsQ: Javascript does not recognize number 10
I got a little problem I don’t know how to fix. In this code below he does the following.... according to a drop down with values from 0 to 10 where the selected option is less than 8 it shows a…
javascriptasked Fabio Henrique 2,156 -
6
votes3
answers2006
viewsQ: Show hidden div according to the value of a Dropdown
I have no knowledge of javascript and would like to know how to make a div appear according to a value of a capo dropdown. Example: imagine a dropdown with values from 1 to 10. if we choose a note…
-
1
votes3
answers441
viewsQ: How to make simple include script in html
I would like to know how I can make a simple script to make my login screen available to my customers . 'Example' I have a simple form that logs into my system <form…
-
2
votes1
answer722
viewsQ: Mysql data query with x Days to expire
I don’t know what I’m doing wrong. in this code below was to show me the list of records with the dates that entered the 3 days house to win only that there are coming records that have already won…
mysqlasked Fabio Henrique 2,156 -
0
votes2
answers862
viewsQ: PHP Calculator Table
I can’t program in javascript so I’d like a little help from you, on how to proceed in this case. In this code below I would like to know how I make a dynamic calculator, per line, equal to the…
-
0
votes1
answer70
viewsQ: Multi Field Calculation within a While
I don’t know how to proceed in this. In the code below I have a loop that returns me quantity and value per line how to make this calculation dynamically per line loop{ linha 1 <input type="text"…
javascriptasked Fabio Henrique 2,156 -
3
votes2
answers2583
viewsQ: Change Form Field Type with onclick
As I don’t have much experience in javascript I would like to know how to exchange between 2 fields when clicking on a link with onclik Exemplo <a herf="#" oncllik="">Mudar Campo</a>…
javascriptasked Fabio Henrique 2,156 -
1
votes1
answer485
viewsQ: How to Take an Auto Increment Id and Attach it to a Variable in the same Index
How to Grab a newly created auto increment id and repeat it in another column by attaching it to a variable? Ex: Na hora do Insert pego idxxxx repito somando a $varxxxx…
-
1
votes1
answer811
viewsQ: List data in a drop down related to the result of another drop down
I have no idea how to proceed in this case Summarizing accurate in 2nd dropdown list data related to the result of the first In the case of the script below it shows the companies and users…
-
0
votes1
answer569
viewsQ: Enable Disable Multiple Specific Fields
Hello everyone As I have no experience with javascript I would like a help how to disable some specific fields. In this Script below and is exactly what I need only when putting it in the code It…
javascriptasked Fabio Henrique 2,156 -
1
votes1
answer107
viewsQ: Hostings that use JSP
I have a linux web hosting I put all my systems in PHP, and now I need to work with the extension (*.JSP) and I have some doubts What type of host I use to run JSP? Cpanel runs JSP automatically?…
-
2
votes2
answers981
viewsQ: Pass each result of an array to a variable
I have this tie that lists all the lines of array, but I only need a few lines. How to pass each result to a variable? $WS->key='00000000000'; // Atenção: Este parâmetro possui valores diferentes…
phpasked Fabio Henrique 2,156 -
1
votes2
answers1940
viewsQ: Why don’t you open some websites?
Can anyone explain to me why some websites don’t open on <iframe> and if there is any solution similar to <iframe>? The Google and Paying, for example, do not open. <iframe…
-
2
votes1
answer1114
viewsQ: Pass results from an array to variables
The query below returns the total number of records by mode: $sql = "SELECT modalidade, COUNT(*) as total FROM a_finan GROUP BY modalidade"; $resultado = mysql_query($sql) or die( mysql_error());…
-
0
votes1
answer170
viewsQ: How to Count Total of Multiple Type Records in a Single Query in sql
Hello Today I’m making the record counts this way $sql1 = "SELECT COUNT(*) AS total1 FROM a_finan Where cat = 'Ativos' ; $resultado1 = mysql_query($sql1) or die ("Erro na consulta1"); $linha1 =…
-
4
votes3
answers2029
viewsQ: Pass Google Maps API to JPG image
I have this code below: <iframe width='500' scrolling='no' height='200' frameborder='0' id='map' marginheight='0' marginwidth='0' src='https://maps.google.com/maps?saddr=São Paulo - SP,…
-
0
votes2
answers172
viewsA: Open Modal window if difference between dates is equal to X days
I made some changes to the above code and came to the exact conclusion of how I wanted the script to work follows below the changed Code. <input type="date" name="start" onblur="" />…
-
1
votes2
answers172
viewsQ: Open Modal window if difference between dates is equal to X days
I don’t have much knowledge with javascript and I don’t know how How can I Open a Modal window if difference between two dates is equal to X days Exe. (If clicking on the chosen field and date has a…
-
-1
votes1
answer325
viewsQ: Insert mysql query into a variable
Personal I am making a code to send email via phpmiler the problems is in how to generate an html as body of the email containing variables. Type Tipo arquivo html.php $variavel = " <html>...…
-
10
votes5
answers6566
viewsQ: Remove last comma from an array
In this Code below I have a array that returns a comma to me at the end exe: '98602','98603','98604', How can I remove this comma? if (isset($_POST['checkbox'])) { foreach ($_POST['checkbox'] as…
-
4
votes3
answers346
viewsQ: Variable error within the function
I’m having problems and for what I searched in the internet forums, others have the same doubt that I. I cannot use PHP variables within the transaction function. How do I set a variable? For…
-
1
votes1
answer546
viewsQ: Passing javascript variable to php or direct to a field
How to pass the result of this script to a field and already returning formatted in Real Currency </head> <body> <input type="checkbox" id="iv"/></br> <input type="text"…
-
2
votes1
answer269
viewsQ: Script to Calculate By Dropdown without onclick
I need that in the script below, when selecting the dropdown it makes the calculation automatically without having to click the button calcular. Another thing I wanted is when I marked the checkbox…
-
1
votes2
answers560
viewsQ: Select 2 related and 1 unrelated tables in a query
I have this query below that returns me data from two related tables. It takes all vehicle fields and all product fields with equal "id_transfer" $cmd = "SELECT p.*, v.* FROM produtos AS p INNER…
-
2
votes2
answers334
viewsQ: Error reading dynamically generated JSON with file_get_contents
I have this code that generates me a json file header("Content-Type: application/json; charset=utf-8;"); $codigo = $_GET['cod']; //variável para parametro que será passado ao servidor via URL $sql1…
-
4
votes1
answer6781
viewsQ: Calculate distance between 2 points in Google maps
I don’t have much experience with javascript and have no idea how to get the result of this script and move to a field <input text>. This script calculates the distance and time between two…
-
1
votes2
answers1333
viewsQ: How to query data from two related tables?
I got this case down: (Tabelas) cidades: id, nome_cidade,local +--------+----------------+---------------+ | id | nome_cidade | Local | +--------+----------------+---------------+ | 1 | Rio de…
-
8
votes3
answers579
viewsQ: How to join data from another table
How to join data from another table. On the bottom bench I have 3 tables: dados: id, nome, end, tel... etc.... cidades: id, nome_cidade status: id, nome_status $sql = "SELECT * FROM dados ";…
-
1
votes1
answer342
viewsQ: List Dates Online Schedules in One Table
Tom with a problem here that I don’t know how to fix. I made An Agenda that returns to me the users and the calls that he would have in the week, this presented in a table equal to a weekly…
-
2
votes2
answers584
viewsQ: Sort by amount of days missing to win
I have this script in my code: $sql = "SELECT * FROM os WHERE status2 <> 'Fechado' ORDER BY XXXXXXX "; $resultado = mysql_query($sql) or die ("Erro na consulta"); while ($linha =…
-
4
votes1
answer266
viewsQ: Create check multiple values of a variable
I have a set of rules that take up a lot of space in my code: if ($ni == '1' && $status2 == 'Aberto' ){ $url_edit = "<a href='edit_os.php?id1=$id1'>"; }elseif ($ni == '1' &&…
phpasked Fabio Henrique 2,156 -
0
votes1
answer453
viewsQ: Calendar Per Week Page
I am developing a Specific Client Schedule But I’m not sure how to schedule a week. The schedule works much more do not know how to page now date_default_timezone_set('America/Sao_Paulo'); $data1 =…