Posts by romulo henrique • 151 points
22 posts
-
-2
votes1
answer35
viewsQ: javascript does not recognize the array possible when I set
I am making a project in Ionic 3 however when weighed for it shows a specific place of the array it does not recognize and undefine my code: public status: boolean = null; public id_est = null;…
-
-2
votes1
answer563
viewsQ: calculate distance between two points in php
I am doing a project and I need to calculate the distance in kilometers(KM) using the latitude and longitude I found a function in php but when I will take the result and compare with the google it…
-
4
votes1
answer211
viewsQ: use user ip as proxy to request
I am developing a site using the guzzle and wanted to use the ip and the port that the user accesses the site as proxy at the time of the request already tried these codes and n was <?php $ip =…
-
1
votes1
answer31
viewsA: reactphp - Undefined index
The reason for the mistake is that you’re putting mysqli_fetch_row and the right and mysqli_fetch_array then I’d be like this <?php require 'vendor/autoload.php'; $loop =…
phpanswered romulo henrique 151 -
1
votes1
answer308
viewsA: Laravel - View [.site.Home.index] not found
I was having the same mistake once in a project the reason was that I had accidentally moved my folder resources elsewhere check your Folder resources is at the root of your project folder…
-
1
votes4
answers67
viewsA: Create a role or use the code directly?
I’d rather create function even if it can be used without them because I imagine on sites with several Scripts where a var can interfere with other so using function avoid conflict because it exists…
javascriptanswered romulo henrique 151 -
0
votes1
answer509
viewsA: Checkboxes with php Database
You will have to work with $_GET IF(ISSET()) In my view it would look something like this. if(isset($_GET['Placa']) AND isset($_GET['Motorista'])){ $placa=$_GET['placa'];…
-
1
votes1
answer348
viewsA: Insert progress bar with php - Bootstrap
If you already have bootstrap css you can use the mysqli_num_row to get the number of rows inserted in the table
-
0
votes2
answers53
viewsA: Call div when specific link
From what I understand and only you use the GET mode. $url=$_GET['mostrar']; if($url="quem-somos"){ echo "<div id='IDdaDiv'> </div>"; } So if the url is site.com/index.php? show=who-we…
phpanswered romulo henrique 151 -
1
votes3
answers456
viewsQ: Check that the value of $_GET is an Integer number
I’m having trouble checking if the value of $_GET is whole. Below is the code: <?php $modo=$_GET['PG']; if(is_int($modo)){ echo "e inteiro"; }else{ echo "n e inteiro"; } ?> Even though I put a…
phpasked romulo henrique 151 -
2
votes2
answers108
viewsQ: formulario this with problem when recovering the Post value
hello I’m making a website and I wanted so the person type the link javascript pick up and send the form but it is sending but when I try to recover with the $_POST it n recovers the value q was…
-
0
votes1
answer43
viewsQ: Multiple Insert to php database
Hello I am creating a link shortener and I wanted to put a multiple link insert type a person puts several links in an input separating each link with % or other character and each made php read the…
-
0
votes1
answer1112
viewsQ: execute a function when clicked on the button
I’m trying to make it only send to the database when you click the put button every time the page is loaded even if you don’t click the button. This is the code I’m using <script> var text =…
-
1
votes2
answers46
viewsA: I have questions that when you click on it, the onclick event is called a div that is on display - None appear
I may have misunderstood but I think that’s just how css <style> #div_email { display: none; } </style> HTML <a id='a' href="#">Como comprar passagem</a> <div…
-
-3
votes1
answer36
viewsQ: Session not being updated
To Session does not want to accept the method value POST. She saves the first time, but after the page is updated she disappears. <?php if(isset($_SESSION['b'])){ if ($_SESSION['b'] !=""){…
-
1
votes1
answer52
viewsQ: Problem with $_POST and IF
I am trying to do q if the person type 12 in any part of the text he enters the if but he is not entering if ($_POST['mensagem'] !="%12%"){ echo"vc digitou 12"; }…
-
-1
votes1
answer64
viewsQ: SQL search specifies
Ola wanted to do a database search with and that only brings the answer if conditions are reached used code. $sql2 ="SELECT * FROM `link` WHERE 1 LIKE…
-
2
votes2
answers161
viewsQ: right div align
I’m trying to align this div on how much right of the screen and it’s just left <div class="tres"> <iframe data-aa='861335' src='#' scrolling='no' style='width:120px; height:60px;…
-
1
votes1
answer2115
viewsQ: window.open size and place
I am using windows.open to open wanted it to open like one of the popads in the bottom right corner and decide to use the code such but it n decreases in size and n stays in the right cando like…
javascriptasked romulo henrique 151 -
2
votes2
answers50
viewsQ: Open window 1 single time
I’m hoping that by clicking on the page a window opens and I’m using this code <script> document.onclick = function( e ){ myFunction(); } function myFunction() {…
-
5
votes4
answers1424
viewsQ: How to continue incrementing the value of a variable even after a page is reloaded?
I wanted to add +1 in the variable $a every time the page is loaded. I’ve used the code: $a = ++$a; echo $a and also the: $a = $a++; echo $a But it only adds once, and when I refresh the page, it…
phpasked romulo henrique 151 -
0
votes1
answer580
viewsQ: How do I use window.open and window.close together
I’m hoping that when a person presses the button shift a tab opens and the previous one closes, but I’m not getting. <script> function keyCode(event) { var x = event.keyCode; var y =…
javascriptasked romulo henrique 151