Questions tagged as 'php'

2
answers

tabs overlapping in foreach [closed]

I need the foreach to work correctly: For us to have no doubt here is the normal code: <!-- Tab v2 --> <div class="tabs alternative"> <ul class="nav nav-tabs"> <li class="active">...
asked by 28.10.2016 / 04:30
1
answer

javascript problem receiving variable with date

<td class="A8" style="text-align:center;"> <?php $dta_inicial = $dados['data_inicial']; var_dump($dta_inicial); ?> <div class="B2" onclick="preencheform_edicaoJS(<?php echo $dados['etapa_projeto_id']; ?>,&...
asked by 17.12.2015 / 17:06
3
answers

Can I use "mysql_real_escape_string" in site "mysqli_connect"?

Can I use the mysql_real_escape_string function on a site built in mysqli_connect ? And if so does it make any difference or would the protection be less? Or should I use mysqli_escape_string ? Because when I put mysqli_...
asked by 10.12.2015 / 13:20
2
answers

How to return a part of a string (an html element) in php?

I am making a "technical resource" to be able to return the status of the SEFAZ servers issuing invoices using PHP. For this, I have so far the code below: function get_content($URL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNT...
asked by 23.12.2015 / 03:15
1
answer

How to perform UPDATE with PDO in PHP?

So folks, I wanted to redeem the data to edit in update.php , but how much lost here, how to give a force? <div class="container"> <div class="table-responsive"> <table class="table"> <tr>...
asked by 10.12.2015 / 17:35
1
answer

Is it possible to add a different number for each li created in a for?

I have a cookie in bootstrap and to call wordpress posts inside it, I have for inside <div class="carousel-inner"> . The for can create the posts, but I am not able to include the indicators of each post (the...
asked by 18.12.2015 / 13:26
1
answer

Count values of elements of an array in PHP

I have the following array , for example: Array ( [0] => Array ( [ID] => 401675295 [DATA] => 2016-06-28 15:33:07 [TITULO] => Teste [TEXTO] => [TIPO]...
asked by 29.06.2016 / 15:33
2
answers

change image from png to jpg with php

Galera I put together a PHP script that uploads a photo. The problem is that I need to convert it to jpg and to the size of 280px x 280px. Does anyone know how to do this? I have to save as much disk space as possible. Follows: <?ph...
asked by 14.06.2016 / 21:53
2
answers

Receive variable real time ajax

Well I'm making a system, and I need to get the variable of a php page every time, so I can work on it on my index.php page. A friend of mine who understands more about ajax than I passed the following code: However, I do not know how to p...
asked by 03.07.2016 / 01:00
4
answers

How to display an information (domain name) using PHP?

How can I display information on my site using PHP ? I am creating a personal website, and I want to make versions of this site in other languages. What happens is that I need to set the domain of my site to be able to put links....
asked by 18.12.2014 / 06:25