Questions tagged as 'php'

2
answers

Subtract percentage in real time in an HTML with JavaScript, or by calling a PHP

It is to make a simple form where we put the data of a monthly expense in number. The idea is that when doing click in calculating savings show you again your spending and the% saving 8% . I need to know if with AngularJs or with php...
asked by 02.12.2017 / 00:11
2
answers

Authenticate in PHP with array search

Hi, I wanted to know how I could make this code, when logging in, compare if the credentials are correct by comparing the values of an array. I did it with a foreach, comparing them with if, but the result that gives me is that everyone can ente...
asked by 23.12.2017 / 22:18
3
answers

How can I rename the name of a tab element in materializecss?

Hello Stackoverflow people, I hope you have a great day. I'm working on a project and I have to use the tabs elements of the Materializecss framework (a material design framework). Basically I want to achieve the following behavior in the tab el...
asked by 26.12.2017 / 05:43
1
answer

Problem with value that Ajax returns when sending mail, even if it is successful

I raise this question at the suggestion of @CamiloVasquez that has helped me in another question. I have a form that collects some data from the user, and has the option of sending it by mail via Ajax. Then the code that processes the data to as...
asked by 21.12.2017 / 18:12
1
answer

How to add table in php?

Good afternoon, I have a code that loads a bd table, what I'm looking for is to take advantage of the cycle to be able to add and send it in an input. <table class="table table-striped"> <thead> <tr&...
asked by 20.12.2017 / 18:17
3
answers

PHPMailer and Gmail conect server error

I see myself in the painful obligation of coming to you for help. Even though I had already posted something about PHPMailer it turns out that now it stopped working like out of the blue. I tell you: I have the following code (I omitted the mysq...
asked by 24.10.2017 / 06:46
1
answer

Error with fetch_assoc MYSQLi

I come to you since I am stuck in an object-oriented MySQLi function. I try to get the ID (A_i) of the corresponding tokens of the users, in a table called Tokens. The problem is that it does not give errors and also returns an empty result....
asked by 25.10.2017 / 21:21
1
answer

Codeigniter 3 MY_Controller not found

The error is as follows, by extending the Register class of the MY_Controller to create the user login, it throws me the following error. Any ideas? He says he has not found the class, but even adding it does not find it. Driver for...
asked by 27.04.2017 / 12:26
1
answer

Correct array format in PHP 5.3

I have the following code to have the records of a database: <?php include '__conexion.php'; require_once 'funciones/passwordLib.php'; // Libreria de PHP5.5 Hash de contraseñas ini_set('max_execution_time', 300); //300 seconds = 5 mi...
asked by 27.04.2017 / 13:40
1
answer

Capture text within quotation marks within tag

I want to make a match to any text between quotes that is between a couple of specific tags, for example Code: codigo cualquiera 1 [begin] "hola" <--- match a este 123 hola "hola" <-- math a este otro [end] [otro] "hola" &...
asked by 01.11.2017 / 22:56