Questions tagged as 'php'

1
answer

WAMP does not store

Hello, you are not giving any errors, but WAMP does not save the information. Code of cadastro_db.php : <? include("conection.php"); $nome = $_POST['nome']; $email = $_POST['email']; $idade = $_POST['idade']; $cidade = $_PO...
asked by 25.04.2015 / 02:51
1
answer

Online Calculator Applying Fine and Discount

In my code below it makes a sum between fields per line. What I am not able to do, is when clicking a checkbox it realizes the percentage discount and in the other checkbox add a fine in percentage. below is the image as it is today As I do not...
asked by 28.08.2016 / 18:03
1
answer

Read and write xlsm file in php

I have a fairly large hand problem which is as follows: I have an xlsm file with macros to read, write, and then download. It is a 4 MB file with formatting and embedded images. I have used PHPExcel just because I have not been able to rea...
asked by 13.04.2015 / 12:24
1
answer

Array with information from a database

I'm starting an email system for a client. It has SMTP from locaweb and they have an API for sending mail. So far so good I can send the emails using their api, but I came across a question that I can not solve. It's like this: I need to moun...
asked by 15.04.2015 / 00:58
1
answer

Round off installment values for the first installment

For example: venda de R$ 200,00 em 3x: parc 1: 66,67 parc 2: 66,67 parc 3: 66,67 In addition to not making the change easier, it would be charging a penny more. You would need a solution such as: parc 1: 68,00 parc 2: 66,00 parcl 3: 66...
asked by 20.01.2015 / 14:19
1
answer

Display HTML with TWIG

I'm using TWIG in a project of mine but I can not display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed. Example: {{ 'Ao <strong><em><u>contr&aacute;rio do que se acred...
asked by 18.01.2015 / 22:05
2
answers

Change Wordpress login method

I would like to change the login form of WordPress from Username / Password to Email / Password or also Custom Field / Password.     
asked by 05.01.2015 / 15:58
1
answer

PHP Generate Popup Confirmation [Closed]

I have a php code that makes inserts into the database, these data came through forms, how can you return a message through a popup to the user informing him whether or not his registration / query succeeded ? and there is no redirection on the...
asked by 09.01.2015 / 17:03
2
answers

Problem with wrong time in PHP (America / Sao_Paulo)

I'm running an application running in a CentOS production environment with PHP and Apache updated. I noticed that CakePHP's logs return a wrong time from the one defined in php.ini and also set inside the application's Bootstrap by...
asked by 20.01.2015 / 18:37
1
answer

Codeigniter Session Error:

This system error appears in codeigniter. The errors pointed out by php: ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); session_start(); Standard Driver       class Login extends CI_Controller {...
asked by 16.05.2016 / 19:05