Questions tagged as 'php'

1
answer

A Database Error Occurred: You must use the "set" method to update an entry

I am using Codeigniter and I am registering a call in the database and I get the following message: public function solicitacaoRapida(){ $banco = array( 'solicitante' => $this->input->post('empresaSol...
asked by 01.06.2016 / 21:06
1
answer

Subtract days to current date with PHP [duplicate]

Hello, I would like to know how I can decrease, for example like this: $ current = '20 / 02/2016 '; $ dataSubtration = '18 / 02/2016 '; $ calc = $ currentTime - $ dataSubtraction; // As a result I wanted it to return number 2 (type, 2 days...
asked by 20.02.2016 / 23:52
1
answer

How to use the ob_flush () function to return data to browser animatedly?

I need a help, I have an email system, I need to know what is going on in the backend process a log that returns to the browser, when triggering script, example I want to send email to 2 people. When an email is sent it returns a echo '1...
asked by 16.02.2016 / 20:07
1
answer

Expand MVC structure and modularize by files?

I'm trying to understand the MVC pattern and I've created an example with CRUD of users (with login), but I'm not sure if it's the best way I've created it. Here are some pages and the download link for the project: index.ph...
asked by 11.03.2016 / 02:09
1
answer

Site AngularJS accessing API, authentication question

I have an API written in PHP + Slim, which is being used by an administrative panel, and authentication is via token, which is returned when the panel user logs in. However, I'm doing a site with Angular and would like to reuse the API, but I...
asked by 09.03.2016 / 21:29
1
answer

Foreach Ajax for combo

I have the following Ajax excerpt to feed input of type text or select with values already defined: ids.forEach(function (id) { document.getElementById(id).value = dados[id]; }); I would l...
asked by 10.03.2016 / 15:00
1
answer

.htaccess import another file with rule

I have the following problem, I have an administrative area where redirects can be registered, and these redirects are saved in the database, I currently do the redirection via PHP , but I would like to do this redirection via htaccess...
asked by 08.03.2016 / 13:24
1
answer

Form with datetimepicker

I'm developing a scheduling system and I'm using datetimepicker to dial the hours. I need a help with json; I need to block the dates that are being used so they can not be selected. The project is updated in github. Thanks in advance!...
asked by 19.03.2016 / 07:47
1
answer

Redirect Cross-Domain AJAX Request in PHP

I have code that redirects an AJAX request and it works normally on localhost , but on the cross-browser server the request is not redirected. header('Location: http://dominio.com/endereco'); exit; Is it possible to block AJAX request red...
asked by 14.03.2016 / 22:16
1
answer

How to load the information inside the modal (bootstrap 3.3.6)?

I'm wanting that in modal, after clicking on the option view, it loads the information. However, it only loads ID 1 from the table, regardless of which table item I want to display. It always brings the same information. Below is the code for ho...
asked by 15.01.2016 / 13:05