Questions tagged as 'php'

2
answers

Invalid argument foreach () return blank message

<table border="1"> <?php foreach($arrayReturn['qsa'] as $value){ ?> <tr> <td>NOME:</td> <td><?=$value['qual'];?></td> <td><?=$val...
asked by 07.08.2017 / 23:10
3
answers

PHP - Problem with string accentuation in a string

I'm having problem with looping in strings with special characters, could anyone help me? Follow the example: $letras = 'nós'; $numero = strlen($letras); for($j = 0; $j < $numero; $j++){ echo $letras[$j]."-"; } The result of the a...
asked by 02.06.2017 / 16:46
1
answer

How to check if it already exists in bd?

Well, I have following code: <?php $link = mysqli_connect("localhost", "root", "vertrigo", "recebecores"); $red = $_GET["red"]; $green = $_GET["green"]; $black = $_GET["black"]; $procura1 = mysqli_query($link, "SELECT * from recebescore...
asked by 24.07.2017 / 00:02
3
answers

Multiple foreign keys in a single query

Well, I'm having some problems creating a mysql query that looks for several data from several tables in a single query, I looked here in the stack, I found some similar questions, but I could not understand the logic or method used, and or "why?...
asked by 26.07.2017 / 15:50
2
answers

If I declare a variable in a SELECT query, is it mandatory?

My problem is that I will not always receive the variables, so I need a way that does not make them mandatory even by declaring them, for example in the query below: "SELECT * FROM clientes WHERE clientes.nome = :nome"; Var :nome...
asked by 01.07.2017 / 03:42
2
answers

Increment variable inside a foreach [closed]

How do I make a variable increment within a foreach ? foreach($adults as $adultos): $i = 1; echo "<strong>Quarto".$i++."</strong><br>"; echo "Adultos:".$adultos."<br>"; endforeach;     
asked by 19.09.2017 / 01:51
2
answers

How to find a caraceter in the string and cut string to it and after it

I'm trying, unsuccessfully to make a cut of a string from a character contained in it, first I need to find the _ in the string, after finding it I need to cut it to him and after him to the ponto , if it does not find the character...
asked by 04.10.2017 / 13:41
2
answers

How to join two array

I need to join two array first array array (size=11) 7100 => boolean false 7108 => boolean false 7110 => boolean false 7120 => boolean false 7130 => boolean false 7140 => boolean false 7150 => boolean false...
asked by 02.03.2017 / 00:01
3
answers

Url array - Next button

PHP $urls = Array('www.1.com.br','www.2.com.br', 'www.3.com.br'); HTML <iframe src="www.1.com.br" width='100%' height='100%'></iframe> <button>Proximo</button> How do I always click on the next button to up...
asked by 01.11.2016 / 05:08
2
answers

How to remove trash in print screens

How do I create a CSS to remove rubbish as in the attached image.   I'm using bootstrap.     
asked by 28.09.2016 / 20:30