Questions tagged as 'echo'

1
answer

How to send formatting from CKEditor to DB?

My question is as follows, I configured CKEditor inside a textarea , where everything I type sends to banco de dados which at the same time feeds another page, working in sistema de noticias style. But in the page t...
asked by 19.06.2014 / 01:50
2
answers

My if is not working as expected

$mt = $conn->query("SELECT entry_type FROM myTable")->fetchAll(); foreach ($mt as $FB) { if ($FB['entry_type'] == 'pagina'){ echo '<meta property="og:type" content="website">'; } else{ echo '<meta property="og:type" cont...
asked by 25.09.2018 / 23:21
1
answer

If within PHP Field

Good afternoon, How to do an if within variable value assignment. $html =' <body> <table width="100%" style="background:#00aeef;"> <tr><td> <table width="596" border="0" ali...
asked by 18.07.2017 / 19:51
1
answer

How to put PHP inside an echo?

How do I instead: elseif ( $qtd == 1000 ) { echo $this->__('<b>produto customizável</b><br><span class="product-name">ENTRE EM CONTATO</span><div style="backgroud:#333">'); } Make this work:...
asked by 02.12.2014 / 03:03
2
answers

How do I 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 have this page here link JSON: { "totalstreams": 1, "activestreams": 1, "currentlisteners": 19, "peaklisteners": 57, "maxlisteners": 500,...
asked by 15.06.2016 / 17:05
2
answers

How to receive an array and print its contents using PHP?

I need to know how to store the data of an array into a variable, using the looping below: Receiving data: $sql="SELECT 'devicetoken' FROM 'devicetokensios' ORDER BY 'index'"; $resultado = mysql_query($sql) or die ("Erro .:" . mysql_err...
asked by 14.11.2014 / 16:54
2
answers

Go through php array variable

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 Parc":"2","Data do pagamento":"06/05/2017","va...
asked by 07.03.2017 / 03:27
5
answers

Php View Columns

I have two columns A and B with varying words, I want to remove the whole line of A and B that in column B is less than 8 characters long. How do I do this in php?     
asked by 10.03.2017 / 19:50
1
answer

How to put a layout for the search results of an input search that are within the echo?

I need to put a layout in the search results of the input search, I have a page that uses the layout of Cards of bootstrap 4, and I wanted the search results to look the same. This is the script I use in the layout of my other page: <div cl...
asked by 11.09.2018 / 23:31
1
answer

Difficulties in receiving JSON data in PHP

Good evening everyone, I'm having a serious question about receiving JSON data via an external link. I have a link that pulls all the information I need to show, but there is my question, I'm using a form to show the data according to the...
asked by 12.07.2018 / 01:42