Questions tagged as 'php'

2
answers

Catch all the hours that are between the start time and end time with PHP

I'm developing a module and I need to get all the time between 2 hours, start and end . Example: <?php $hora_inicial = '08:00'; $hora_final = '15:00'; ?> Then you would have to list    08:00 09:00 10:00 11:00 12:00 13:00 14:...
asked by 28.07.2016 / 03:34
1
answer

Send data from a dynamic table via ajax

I have a dynamic table, where I can add or remove a row, when I add a new row I can send what is written by the form ... But not when I try to send via ajax, it only sends the first line. How would it be right to send all the new lines? html...
asked by 27.01.2016 / 19:38
1
answer

Get return of a PHP function in JS

I'm starting now and my question is simple, I have a function created inside a class in a php file, and I want to get the return of that function in another javascript file, how do I do this? has something to do with ajax request?. Php file,...
asked by 28.07.2016 / 17:22
1
answer

Single sign-on system [closed]

How to create a unique login system in PHP ? Give access to multiple sites for the user, without having to log in to each site. Like Google, with a single login, you use Google and YouTube.     
asked by 28.07.2016 / 01:05
1
answer

Validation of form php and ajax

I'm sorry if the question is silly, but I do not know much about ajax and I'm trying to make a basic form to test validation using ajax and php (if at all possible). Good reading on the internet and seeing some articles, so far I have come with...
asked by 28.07.2016 / 15:09
1
answer

Set FROM different from the email you are actually sending. It's safe?

When I send email through php (phpmailer), I can configure all email parameters, however, I can check that I can do something like this: <?php // Excerto do código $mail = new PHPMailer; $mail->IsMail(); $mail->IsHTML(true);...
asked by 28.07.2016 / 12:40
1
answer

Generating valid Php Array for jSON conversion

Explaining a little bit about the purpose of the code: Through the query sql returns data, the only data needed is the 'id' and the name of the 'area', so two arrays are created, one to receive the 'id's and the other to receive the 'area's', af...
asked by 11.12.2015 / 22:28
1
answer

How to ask the reason for an exclusion using confirm and prompt?

I have a project ready and I need to make a change. When I am going to delete a record named print "javascript:if(confirm('" . $msg . "'))"; however I have to ask the reason for the exclusion. I would like to ask this reason with a prompt...
asked by 10.12.2015 / 12:41
1
answer

Regular PHP expression, how to remove open html tags?

Hello! I need to remove from my string an html snippet that bugged, it goes like this: e="text-align:left;"> Texto normal ... This causes a visual error. Another error that is generating at the end of the text ex: <p style="text-ali...
asked by 16.05.2016 / 15:44
2
answers

graph with data from a REST service

I have a REST service done in PHP and it returns me data in JSON . When consuming the API url in REST, I need to display the data in graphs made in javascript. Does anyone know of any framework in JS that generates graphs of a...
asked by 13.05.2016 / 15:47