Questions tagged as 'php'

3
answers

How to display all the results of a SELECT in PHP?

I've done this code all by myself, but I'm having trouble displaying all the results one below the other. <?php include 'conexao.php'; ?> <html> <head> <title>GMB Mineração e Comércio LTDA</title>...
asked by 02.01.2015 / 19:41
2
answers

Interest rate formula

I have to do this little work in PHP structured below, but I have a problem there in the interest rate formula, I did not understand how to apply it, I did like this: /* Calcula os Juros --------------------------------------------------------...
asked by 14.09.2014 / 06:27
2
answers

Show items as selected by a select (HTML) [closed]

Good afternoon! I have a database with two tables, products and menus, the two tables are indexed through the CdCardapio field. I created a html select element that contains all the registered menus, so that when selected, for example, the "B...
asked by 15.09.2015 / 20:35
2
answers

Capture and filter result

I have a string <div></div> [........] <p>Ola meu nome é pseudomatica (sou normal), etc. Meu nome é assim pq sim</p> <p></p> [........] How do I make the contents of the first <p> , ie the...
asked by 20.12.2014 / 22:23
3
answers

Get the value of select

My Select looks like this: <select class="input-medium ajuste" id="sel_mes"> <option value="09/03/2014">Março - 2014</option> <option value="09/04/2014">Abril - 2014</option> <option value="09/05/2014">...
asked by 09.03.2015 / 21:39
2
answers

How to ZIP only images of a folder with PHP?

In my folder to be zipped, there are .php and images files, but I need to zip only images! Is there a possibility with PHP's class ZipArchive ? My function ( works perfectly for everything in the folder ): /* creates...
asked by 26.05.2015 / 22:54
2
answers

How to send data to a form using cURL?

I was reading about cURL, and saw that I can use it to send data to a form (as if typing data and giving submit). How could I do this in php?     
asked by 24.04.2015 / 15:22
2
answers

Consult CPF at IRS

I would like to somehow check the person's name through the CPF on the recipe site. There are applications on android that just put the CPF and it brings the name and the cadastral situation. But the site has a captcha. Has anyone ever done a...
asked by 01.07.2015 / 22:09
2
answers

When should I use GET function and when should I use POST function?

I have a question and I think it's even "stupid" but when should I use GET and when should I use POST? I know that when using GET the text or message written in a form or field, it is also passed to the link or URL address, so I know that GET...
asked by 15.03.2016 / 14:22
2
answers

Adding numbers from a MySQL column using PHP

I have several results in the MySQL database, I want to get the results and add all the numbers of a column in PHP. How do I?     
asked by 20.06.2015 / 19:35