Most voted "echo" questions
It is a command available on Unix that displays a text on the screen of a computer terminal. It is a command used in scripts to display messages on the screen or in a file. The command is also present on DOS, Linux, Mac OS, OS/2, and Windows.
Learn more…35 questions
Sort by count of
-
4
votes1
answer266
viewsHow do I send a message to stderr no bash via echo command?
I’m writing some script to deploy an application and need to send status messages to stderr instead of stdout, that command echo makes by default. How to do the command echo send the message to…
-
3
votes2
answers1736
viewsHow do I put an html tag inside the php code to format the text there?
I have the following code and I wanted to tag <font> </font> for example to format the user. <?php session_start(); echo "Usuario: ". $_SESSION['usuarioNome']; ?>…
-
2
votes3
answers6345
viewsIn PHP, what is the best way to print a variable through a function?
Let’s say I have the following function: private function teste() { return 'teste'; } For me to print on the screen, I could just use: echo $this->teste(); But in some cases I see that first…
-
2
votes1
answer797
viewsError printing echo php in div
I’m an amateur programmer and I’m having a problem printing an eco php inside a div. I have a file that when accessed (only once) will start the database installation:…
-
2
votes1
answer2421
viewsphp echo html tag as text
I have a query in php/oracle that shows the result in the browser, hides a tag "< /b>" while in oracle sql Developer presents everything ok. The expected: '___< /b>' What displays in the…
-
2
votes1
answer170
viewsDoubt about echo inside a loop
I have this code for an API test and I wanted each end of the loop to write on the screen the progress of the script in %, but it only shows when it finishes doing everything, there is some way to…
-
1
votes1
answer1569
viewsHow to send Ckeditor formatting to BD?
My question is this, I set up the CKEditor within a textarea, where everything I type sends to the banco de dados that at the same time feeds another page, working in style sistema de noticias.…
-
1
votes1
answer3872
viewsHow to put PHP inside an echo?
How do I stop instead: elseif ( $qtd == 1000 ) { echo $this->__('<b>produto customizável</b><br><span class="product-name">ENTRE EM CONTATO</span><div…
-
1
votes2
answers1136
views -
1
votes1
answer271
viewsDocument.getElementsByClassName("x"). innerText is not working
I’m trying to use the document.getElementsByClassName().innerText but it does not replace the text contained in the class. This text comes from a php echo: echo "<div…
-
1
votes1
answer763
viewsConvert date format to php echo
Good afternoon, My database is saving dates in the following format "2017-04-19", I do not know if it has to change the data already registered in it and the way the data will be saved, so I chose…
-
1
votes2
answers960
viewsEcho colored in php
Can I leave ECHO in PHP colored ? Print in HTML, letter by letter colored ex: if (strpos($d5, '{"name":"')) { echo 'LIVE ->' . $a . '|' . $b . ' | C:' . $c . ''; } else { echo "DEAD -> $a|$b…
-
1
votes1
answer240
viewsIf within PHP Field
Good Afternoon, How to Make an if within variable value assignment. $html =' <body> <table width="100%" style="background:#00aeef;"> <tr><td> <table width="596" border="0"…
-
1
votes2
answers159
views -
0
votes2
answers14275
viewsHow to receive an array and print your content using PHP?
I need to know how to store data from an array in a variable, using the looping below: Data collection: $sql="SELECT `devicetoken` FROM `devicetokensios` ORDER BY `index`"; $resultado =…
-
0
votes5
answers325
viewsPhp View Columns
I have two columns A and B with mixed words, I want to remove, the whole row of A and B that in column B has less than 8 characters. how do I do this in php?
-
0
votes2
answers453
viewsHow to remove some data from a JSON and display only the rest?
Hello, I want to print some data from a JSON page in PHP, for example: I got this page here http://hts03.kshost.com.br:8642/statistics? json=1 JSON: { "totalstreams": 1, "activestreams": 1,…
-
0
votes1
answer678
viewsShow button if logged in/ hide if not
I want to show the "panel" button if the user is logged in, and if they are not willing to show the login button, and it is possible? Just follow my code... <?php if(isset($_SESSION['usuario'])){…
-
0
votes2
answers48
views -
0
votes2
answers883
viewsBrowse variable type php array
I have a $array variable that contains array values that were received from a JSON.stringify(venc) [ {"Nº da Parc":"1","Data do pagamento":"06/04/2017","valor a pagar":"R$ 50,00"}, {"Nº da…
-
0
votes0
answers150
viewsJavascript function returns wrong Ajax
I’m validating a register with JS. There’s a part like this: ... if( existUser() ){ alert(' Email já cadastrado.'); } else // ok , envia formulario ! The Js function that checks whether the user…
-
0
votes1
answer651
viewsSelect "select" values through "GET"
I’m trying and I can’t seem to do the following: I thought to "automate" the system reporting process that I am doing, for this, when registering the PRODUCT, you also register the column id name…
-
0
votes1
answer59
viewsHelp to display database data on the screen
I am doing an INNER JOIN between two tables of my bank. But I’m having trouble showing the organized result on the screen, could someone help me? The tables are of category and service (related to…
-
0
votes1
answer48
viewsHow to put a layout for the search results of an input search that is inside echo?
I need to put a layout in the search results of input search, I have a page that uses the layout of bootstrap 4 Cards, and I wanted the search results to be the same. This is the script I use in my…
-
0
votes0
answers252
viewsWrite to a Shell Script file
I have a problem writing a line in a file using Shell Script. I’ve tried using sed and echo, but in both I don’t have the expected behavior. Using the sed: sed -i -e 'export…
-
0
votes2
answers189
viewsIF with 2 distinct variables for various scenarios
I’m trying to make a condition in php this way: $Telefone = ""; $Celular = ""; Where: If both empty shows echo sem Telefone e nem Celular If variable Telephone = 222-2222 echo Telefone: 2222-2222 If…
-
0
votes2
answers161
viewsPHP = Send Message + Message Thanks + (button) or refresh
Boas, I am bicão and I keep moving in my site I would like the help of you s: After the customer sent message appeared white screen with message of thanks. I fixed to return to the site but the…
-
-1
votes1
answer690
viewsPHP does not run Onclick Return confirm
I’m having trouble running javascript inside PHP "echo", I’ve made some changes and the problem persists. Follow the code I’m using: echo "<a href='excluir.php?id_edital=" . $pegar['id_edital'] .…
-
-1
votes1
answer543
viewsDisplay contents of the <title> tag of the current page using PHP
Hello, I would like a help to modify the code below: <?php function page_title($url) { $fp = file_get_contents($url); if (!$fp) return null; $res =…
-
-1
votes1
answer248
viewsSubstitution of specific words
I want to create a code in PHP in which the user type for example "pedro went to the market" he replaces in some registered words like change the silaba "mer" for copper and the silaba "was" for…
-
-1
votes1
answer55
viewsProblem after increment
Post-increment problem returning 67 and returning 7: <?php $a = 10; $b = 6; echo ++$a; // pré incremento echo "<br>"; echo $b++; "<br>"; echo$b; // pós incremento echo"<br>";…
-
-2
votes1
answer1420
viewsShow 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 in one of the tables of my database. However, I need to show the amount of records…
-
-2
votes1
answer47
viewsWhy does the server not receive my data correctly?
<htlm> <head> <title>Horta do Bob - Resultado da compra </title> </head> <body> <h1>Horta do Bob </h1> <h2> Resultado da compra </h2>…
-
-2
votes1
answer33
viewsAdd value of a variable in a record
I created a bat to add a file content to a record value, but I can’t get the contents of the play variable in the value. This is my . BAT @echo off setlocal EnableDelayedExpansion If exist…
-
-3
votes4
answers1964
viewsSet placeholder with PHP variable
I have a Registration/Search Form and now I’m adding the option to edit the fields. To keep the employee from getting confused, I wanted to set the placeholder with a PHP variable, through the echo.…