Questions tagged as 'echo'

1
answer

Problem pos increment

Post-increment problem returning 67 being returned 7: <?php $a = 10; $b = 6; echo ++$a; // pré incremento echo "<br>"; echo $b++; "<br>"; echo$b; // pós incremento echo"<br>"; echo--$a;// pré decremento ?>...
asked by 11.12.2018 / 15:38
1
answer

PHP does not execute OnClick return confirm

I'm having trouble executing javascript within the "echo" of PHP, I made some changes and the problem persists. Here is the code I'm using: echo "<a href='excluir.php?id_edital=" . $pegar['id_edital'] . "; onClick='return confirm('Desej...
asked by 30.05.2017 / 15:22
1
answer

Show MySQL Query Result with Echo (PHP)

I have a script in PHP and MySQL that has a query responsible for counting how many records (clients) are inserted into one of the tables in my database. However, I need to show the amount of records (clients) in the table with the echo command,...
asked by 25.12.2018 / 18:37
1
answer

Replacement of specific words

I want to create a code in PHP in which the user type, for example, "pedro went to the market" he replaced in a few words already registered type to exchange the syllable "mer" for copper and the syllable "went" for example. and give the text re...
asked by 12.02.2018 / 16:29
1
answer

Why does not the server receive my data correctly? [closed]

<htlm> <head> <title>Horta do Bob - Resultado da compra </title> </head> <body> <h1>Horta do Bob </h1> <h2> Resultado da compra </h2> <?php //cria nomes de variável abreviados $Sal...
asked by 27.09.2016 / 17:46
4
answers

Set placeholder with PHP variable [closed]

I have a Registration / Search Form and now I'm adding the option to edit the fields. For the clerk not to get confused, I wanted to set the placeholder with a PHP variable, via echo . Is it possible to do this? <div class="inputs">...
asked by 22.10.2014 / 19:40