Questions tagged as 'php'

1
answer

Check words in Array php

I'm setting up a text checker, where I store in array1 several texts (I could not filter them) and in array2 I put certain words to be compared. So, one should check that the words that are in array1 are in array1 determine what the...
asked by 17.10.2016 / 17:50
1
answer

Additional GET parameters does not work with htaccess [duplicate]

I'm developing a dynamic website and dynamic url pages, my problem is as follows: When I put in the link the id to view the details of the property <a href="/imovel?id<echo $row['id_imovel']>"> , the property.php file does...
asked by 03.08.2015 / 21:06
1
answer

MPDF - Start pagination with variable numbering

I have an application and need to print a document using the mPDF class, however, I need the in pagination if you start, for example from the number 43 , 44 , 45 and so on and not from 1 , 2 , 3 , as is your default. I would like th...
asked by 07.11.2016 / 21:35
1
answer

Manual Paging in Laravel 5.1

I'm trying to use Laravel 5.1 manual paging because I have a query that needs to be written with DB's select, but paging does not work! It returns me all the data on the screen without paging. Follows: use Illuminate\Pagination\LengthAwareP...
asked by 06.08.2015 / 16:40
1
answer

Error comparing two numbers

I'm having a problem comparing two numbers, here's my code: // Valor $total_ch = 691.11; // Calcula valor total das contas a receber $result = $mysqli->query("SELECT SUM(valor) FROM contas_receber where status = '1' and id IN (...
asked by 10.11.2016 / 13:24
1
answer

Make a Foreach in XML with ids and store in a variable to insert data into a given table

Good afternoon, Next, I have a system that already has the ids registered in a table, (of cars, are optional of cars) and in the other table where is registered the cars calls these IDS already registered, the system only le in the bank of da...
asked by 07.11.2016 / 18:06
1
answer

Summarize dynamic PHP texts with jquery

I've been able to do the View More function, with a StackOverflow code here, but the texts come from the dynamic database, so how do I get this code to get every text? Code in php: < div class="box-body" id="texto"> <?php...
asked by 05.11.2016 / 23:20
1
answer

retrieve array from localstorage and transform into a sql query in php

I'm developing a feature for adding and removing favorite properties with localstorage. //Com esse código eu recupero os itens que foram armazenados em um array no localstorage $(function(){ var favoritos = JSON.parse...
asked by 26.08.2015 / 15:30
1
answer

PDO with type BIT

I was now doing a statement with on duplicate and I have some fields like BIT . My DB class does typing using PDO::PARAM_STR , PDO::PARAM_BOOL , PDO::PARAM_INT ... but the use of these constants is optional, and when...
asked by 18.08.2015 / 04:10
1
answer

PHP Regex remove IMG attributes and change SRC

I have the following string with html : teste = "<img src="image/teste.jpg" alt="" width="32" height="32"> <p>teste</p> <img src="image/teste2.jpg" alt="" width="132" height="132">"; I would like a regul...
asked by 19.08.2015 / 16:50